94acfa50bd
- do not forget to add into mapping dispatch receiver - fix KT-40686 (at least part of it) - add test
24 lines
411 B
Kotlin
Vendored
24 lines
411 B
Kotlin
Vendored
|
|
// KT-40686
|
|
|
|
|
|
class Outer(val o: String, val oo: String) {
|
|
inner class InnerArg(val i: String) {
|
|
val result: String get() = o + i
|
|
}
|
|
|
|
inner class InnerParam(val i: InnerArg = InnerArg("B")) {
|
|
fun foo() = i.result + oo
|
|
}
|
|
}
|
|
|
|
|
|
fun box(): String {
|
|
val o = Outer("A", "C")
|
|
val i = o.InnerParam()
|
|
|
|
val rr = i.foo()
|
|
if (rr != "ABC") return "FAIL: $rr"
|
|
|
|
return "OK"
|
|
} |