Klitos Kyriacou
06/07/2023, 8:53 AMpublic Foo foo()
, which is known to return non-null but is not annotated as such, what is the preferred way to tell Kotlin that the value you assign is definitely non-nullable? (1) val x: Foo = foo()
or (2) val x = foo()!!
Javier
06/07/2023, 9:34 AMchristophsturm
06/07/2023, 10:38 AM