K1/K2: add some more tests around KT-63558

This commit is contained in:
Mikhail Glukhikh
2023-12-19 11:58:46 +01:00
committed by Space Team
parent c0635be31f
commit 3a106fc88e
9 changed files with 75 additions and 201 deletions
@@ -27,3 +27,14 @@ object Test2 {
}
}
}
object Test3 {
fun foo(f: () -> Int) = 1
fun foo(f: () -> Unit) = "2"
fun test(f: () -> Int) {
val result = foo(f)
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int")!>result<!>
}
}