Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/arguments/tryInLambda.txt
T
2020-03-19 09:51:01 +03:00

19 lines
536 B
Plaintext
Vendored

FILE: tryInLambda.kt
public final fun <T> myRun(block: R|() -> T|): R|T| {
^myRun R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|()
}
public final fun foo(): R|kotlin/Unit| {
}
public final fun test(): R|kotlin/Unit| {
R|/myRun|<R|kotlin/Unit|>(<L> = myRun@fun <anonymous>(): R|kotlin/Unit| {
try {
lval x: R|kotlin/Int| = Int(1)
}
catch (e: R|kotlin/Exception|) {
R|/foo|()
}
}
)
}