d66d582f25
IrReturn should return 'Unit' for "return without value".
18 lines
833 B
Plaintext
Vendored
18 lines
833 B
Plaintext
Vendored
FILE /tryCatchWithImplicitCast.kt
|
|
FUN public fun testImplicitCast(a: kotlin.Any): kotlin.Unit
|
|
BLOCK_BODY
|
|
WHEN type=kotlin.Unit origin=null
|
|
BRANCH
|
|
if: TYPE_OP 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 origin=IMPLICIT_CAST typeOperand=kotlin.String
|
|
GET_VAR 'value-parameter a: Any' type=kotlin.Any origin=null
|
|
CATCH parameter=e: Throwable
|
|
BLOCK type=kotlin.String origin=null
|
|
CONST String type=kotlin.String value=''
|