Files
kotlin-fork/compiler/testData/ir/irText/expressions/throw.txt
T
2017-05-04 09:33:03 +03:00

18 lines
781 B
Plaintext
Vendored

FILE /throw.kt
FUN public fun test1(): kotlin.Unit
BLOCK_BODY
THROW type=kotlin.Nothing
CALL 'constructor Throwable()' type=kotlin.Throwable origin=null
FUN public fun testImplicitCast(a: kotlin.Any): kotlin.Unit
VALUE_PARAMETER value-parameter a: kotlin.Any
BLOCK_BODY
WHEN type=kotlin.Unit origin=null
BRANCH
if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Throwable
GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null
then: BLOCK type=kotlin.Nothing origin=null
THROW type=kotlin.Nothing
TYPE_OP type=kotlin.Throwable origin=IMPLICIT_CAST typeOperand=kotlin.Throwable
GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null