Files
kotlin/compiler/testData/codegen/box/nullCheckOptimization/isNullable.kt
Anton Bannykh 43e3314255 JS IR: Remove inline functions with reified type parameters
Otherwise we cannot handle type casts
2018-06-18 13:15:19 +03:00

4 lines
120 B
Kotlin
Vendored

inline fun <reified T> isNullable() = null is T
fun box(): String =
if (isNullable<String?>()) "OK" else "Fail"