https://kotlinlang.org logo
n

Nikky

08/09/2019, 5:11 AM
is
val nullable = platformTypeVariable ?: null
the correct way to tell Kotlin that a platform type is nullable ?
a

Andrey Chernov

08/09/2019, 5:15 AM
The best way is describe type directly:
val nullable: MyType? = platformTypeVariable
👆 1
1
👍 7
2 Views