IR: remap types in LocalDeclarationsLowering

This commit is contained in:
Georgy Bronnikov
2020-09-04 12:34:28 +03:00
parent 1f3d344835
commit 33a2c69122
9 changed files with 107 additions and 6 deletions
@@ -0,0 +1,19 @@
fun box(): String {
var a = 0
fun <T> local(xx: T): T {
class A {
val b = 0
fun id(x: T): T {
a = b
return x
}
}
fun local2() : T {
return A().id(xx)
}
return local2()
}
return local("OK")
}