Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/whenAsReceiver.fir.txt
T
2021-04-06 12:30:34 +03:00

19 lines
593 B
Plaintext
Vendored

FILE: whenAsReceiver.kt
public final fun <T, R> R|T|.also(block: R|() -> R|): R|R| {
^also Null(null)!!
}
public final fun foo(b: R|kotlin/Boolean|, a: R|kotlin/Int|): R|kotlin/Unit| {
lval x: R|kotlin/Int?| = when (R|<local>/b|) {
==($subj$, Boolean(true)) -> {
R|<local>/a|
}
else -> {
Null(null)
}
}
?.{ $subj$.R|/also|<R|kotlin/Int|, R|kotlin/Int|>(<L> = also@fun <anonymous>(): R|kotlin/Int| <inline=NoInline> {
^ Int(1)
}
) }
}