Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/callableReferences/let/null.kt
T
pyos 656c2496a6 JVM_IR: omit bound receiver in IrExpressionLambdaImpl parameters
and remove a hack intended to replace the missing type conversions this
caused.

 #KT-46505 Fixed
2021-05-11 05:49:20 +02:00

6 lines
142 B
Kotlin
Vendored

inline class Value(val value: Any)
fun foo(value: Value?) = value?.value as String?
fun box(): String = (null as Value?).let(::foo) ?: "OK"