Don't apply Unit-conversion for expressions that return Nothing type

This commit is contained in:
Mikhail Zarechenskiy
2020-06-05 15:44:53 +03:00
parent 3634cbe3cb
commit 22b558110d
4 changed files with 25 additions and 11 deletions
@@ -2,7 +2,8 @@ package
public fun bar(): kotlin.Int
public fun foo(/*0*/ f: () -> kotlin.Unit): kotlin.Unit
public fun test(/*0*/ f: () -> kotlin.String, /*1*/ s: SubInt): kotlin.Unit
public fun test(/*0*/ f: () -> kotlin.String, /*1*/ g: () -> kotlin.Nothing, /*2*/ h: () -> kotlin.Nothing?, /*3*/ s: SubInt): kotlin.Unit
public fun </*0*/ T> T.freeze(): T
public abstract class SubInt : () -> kotlin.Int {
public constructor SubInt()