92a7ecfac7
Add tests for non-local returns from lambdas.
23 lines
988 B
Plaintext
Vendored
23 lines
988 B
Plaintext
Vendored
FILE /tryCatch.kt
|
|
FUN public fun test1(): kotlin.Unit
|
|
BLOCK_BODY
|
|
TRY_CATCH type=kotlin.Unit
|
|
try: BLOCK type=kotlin.Unit operator=null
|
|
CALL .println type=kotlin.Unit operator=null
|
|
catch e: BLOCK type=kotlin.Unit operator=null
|
|
CALL .println type=kotlin.Unit operator=null
|
|
finally: BLOCK type=kotlin.Unit operator=null
|
|
CALL .println type=kotlin.Unit operator=null
|
|
FUN public fun test2(): kotlin.Int
|
|
BLOCK_BODY
|
|
RETURN type=kotlin.Nothing from=test2
|
|
TRY_CATCH type=kotlin.Int
|
|
try: BLOCK type=kotlin.Int operator=null
|
|
CALL .println type=kotlin.Unit operator=null
|
|
CONST Int type=kotlin.Int value='42'
|
|
catch e: BLOCK type=kotlin.Int operator=null
|
|
CALL .println type=kotlin.Unit operator=null
|
|
CONST Int type=kotlin.Int value='24'
|
|
finally: BLOCK type=kotlin.Unit operator=null
|
|
CALL .println type=kotlin.Unit operator=null
|