Files
kotlin-fork/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.txt
T
Dmitry Petrov c9777fd79f Add symbols to references
TODO: fix some more tests
2017-05-04 09:33:03 +03:00

20 lines
978 B
Plaintext
Vendored

FILE /tryCatchWithImplicitCast.kt
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=NOT_INSTANCEOF typeOperand=kotlin.String
GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null
then: RETURN type=kotlin.Nothing from='testImplicitCast(Any): Unit'
GET_OBJECT 'Unit' type=kotlin.Unit
VAR val t: kotlin.String
TRY type=kotlin.String
try: BLOCK type=kotlin.String origin=null
TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String
GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null
CATCH parameter=e: Throwable
VAR CATCH_PARAMETER val e: kotlin.Throwable
BLOCK type=kotlin.String origin=null
CONST String type=kotlin.String value=''