[IR BE] Remap references in default arg value in inner class constructor
Make sure that there is no reference into zombie declarations. - fix KT-40771 - add test
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
|
||||
// KT-40771
|
||||
|
||||
|
||||
class Outer(val o: String, val oo: String = o) {
|
||||
inner class Inner(val k: String, val kk: String = k)
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val o = Outer("O")
|
||||
val i = o.Inner("K")
|
||||
|
||||
return o.oo + i.kk
|
||||
}
|
||||
Reference in New Issue
Block a user