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
@@ -55,3 +55,18 @@ object Test4 {
}
}
}
object Test5 {
fun <T> foo(f: () -> T): T = f()
object Scope {
fun bar(): Int = 0
fun bar(x: Int = 0): String = ""
fun test() {
val result = foo(::bar)
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Int")!>result<!>
}
}
}