Files
kotlin-fork/compiler/testData/ir/irText/expressions/tryCatch.txt
T
2018-02-28 10:35:13 +03:00

31 lines
1.5 KiB
Plaintext
Vendored

FILE fqName:<root> fileName:/tryCatch.kt
FUN name:test1 visibility:public modality:FINAL <> () returnType:Unit flags:
BLOCK_BODY
TRY type=kotlin.Unit
try: BLOCK type=kotlin.Unit origin=null
CALL 'println(): Unit' type=kotlin.Unit origin=null
CATCH parameter=e: Throwable
VAR CATCH_PARAMETER name:e type:kotlin.Throwable flags:val
BLOCK type=kotlin.Unit origin=null
CALL 'println(): Unit' type=kotlin.Unit origin=null
finally: BLOCK type=kotlin.Unit origin=null
CALL 'println(): Unit' type=kotlin.Unit origin=null
FUN name:test2 visibility:public modality:FINAL <> () returnType:Int flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='test2(): Int'
TRY type=kotlin.Int
try: BLOCK type=kotlin.Int origin=null
CALL 'println(): Unit' type=kotlin.Unit origin=null
CONST Int type=kotlin.Int value=42
CATCH parameter=e: Throwable
VAR CATCH_PARAMETER name:e type:kotlin.Throwable flags:val
BLOCK type=kotlin.Int origin=null
CALL 'println(): Unit' type=kotlin.Unit origin=null
CONST Int type=kotlin.Int value=24
finally: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit
typeOperand: CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public flags:
BLOCK type=kotlin.Int origin=null
CALL 'println(): Unit' type=kotlin.Unit origin=null
CONST Int type=kotlin.Int value=555