Fix test which is correctly work in old inference

This commit is contained in:
Mikhail Zarechenskiy
2017-07-27 22:13:00 +03:00
parent 3fb865e07c
commit dc83e5ca3a
+8 -10
View File
@@ -31,22 +31,21 @@ FILE /nonLocalReturn.kt
FUNCTION_REFERENCE '<anonymous>(): Unit' type=() -> kotlin.Unit origin=LAMBDA FUNCTION_REFERENCE '<anonymous>(): Unit' type=() -> kotlin.Unit origin=LAMBDA
FUN public fun test3(): kotlin.Unit FUN public fun test3(): kotlin.Unit
BLOCK_BODY BLOCK_BODY
CALL 'run(() -> Nothing): Nothing' type=kotlin.Nothing origin=null CALL 'run(() -> Unit): Unit' type=kotlin.Unit origin=null
<R>: Nothing <R>: Unit
block: BLOCK type=() -> kotlin.Nothing origin=LAMBDA block: BLOCK type=() -> kotlin.Unit origin=LAMBDA
FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun <anonymous>(): kotlin.Nothing FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun <anonymous>(): kotlin.Unit
BLOCK_BODY BLOCK_BODY
RETURN type=kotlin.Nothing from='<anonymous>(): Nothing' RETURN type=kotlin.Nothing from='<anonymous>(): Unit'
CALL 'run(() -> Nothing): Nothing' type=kotlin.Nothing origin=null CALL 'run(() -> Nothing): Nothing' type=kotlin.Nothing origin=null
<R>: Nothing <R>: Nothing
block: BLOCK type=() -> kotlin.Nothing origin=LAMBDA block: BLOCK type=() -> kotlin.Nothing origin=LAMBDA
FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun <anonymous>(): kotlin.Nothing FUN LOCAL_FUNCTION_FOR_LAMBDA local final fun <anonymous>(): kotlin.Nothing
BLOCK_BODY BLOCK_BODY
RETURN type=kotlin.Nothing from='<anonymous>(): Nothing' RETURN type=kotlin.Nothing from='<anonymous>(): Unit'
TYPE_OP type=kotlin.Nothing origin=IMPLICIT_CAST typeOperand=kotlin.Nothing GET_OBJECT 'Unit' type=kotlin.Unit
GET_OBJECT 'Unit' type=kotlin.Unit
FUNCTION_REFERENCE '<anonymous>(): Nothing' type=() -> kotlin.Nothing origin=LAMBDA FUNCTION_REFERENCE '<anonymous>(): Nothing' type=() -> kotlin.Nothing origin=LAMBDA
FUNCTION_REFERENCE '<anonymous>(): Nothing' type=() -> kotlin.Nothing origin=LAMBDA FUNCTION_REFERENCE '<anonymous>(): Unit' type=() -> kotlin.Unit origin=LAMBDA
FUN public fun testLrmFoo1(ints: kotlin.collections.List<kotlin.Int>): kotlin.Unit FUN public fun testLrmFoo1(ints: kotlin.collections.List<kotlin.Int>): kotlin.Unit
VALUE_PARAMETER value-parameter ints: kotlin.collections.List<kotlin.Int> VALUE_PARAMETER value-parameter ints: kotlin.collections.List<kotlin.Int>
BLOCK_BODY BLOCK_BODY
@@ -89,4 +88,3 @@ FILE /nonLocalReturn.kt
CALL 'print(Int): Unit' type=kotlin.Unit origin=null CALL 'print(Int): Unit' type=kotlin.Unit origin=null
message: GET_VAR 'value-parameter it: Int' type=kotlin.Int origin=null message: GET_VAR 'value-parameter it: Int' type=kotlin.Int origin=null
FUNCTION_REFERENCE '<anonymous>(Int): Unit' type=(kotlin.Int) -> kotlin.Unit origin=LAMBDA FUNCTION_REFERENCE '<anonymous>(Int): Unit' type=(kotlin.Int) -> kotlin.Unit origin=LAMBDA