blob: 56798b59c7adb097e7cdeac042a1195dffb5e6be [file] [log] [blame]
// RUN_PIPELINE_TILL: BACKEND
fun <T, R> T.also(block: () -> R): R {
return null!!
}
fun foo(b: Boolean, a: Int) {
val x = when (b) {
true -> a
else -> null
}?.also {
1
}
}