[FE 1.0] Don't try to compute value parameters for variables while creating a flat signature for the overload resolution

^KT-50172 Fixed
This commit is contained in:
Victor Petukhov
2021-12-10 11:10:22 +03:00
committed by teamcity
parent c998582e13
commit e50e055eb4
10 changed files with 65 additions and 3 deletions
@@ -0,0 +1,11 @@
// WITH_STDLIB
fun g(s: String): List<String> {
fun f(x: String): String = x + "K"
val f = f(s)
return listOf(s).map(::f)
}
fun box(): String =
g("O").first()