Files
kotlin-fork/compiler/testData/ir/irText/expressions/throw.txt
T
2016-10-18 09:09:04 +03:00

15 lines
673 B
Plaintext
Vendored

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