Files
kotlin-fork/js/js.translator/testData/box/inline/innerOuterThis.kt
T

19 lines
282 B
Kotlin
Vendored

package foo
inline fun<T> with1(value: T, p: T.() -> Unit) = value.p()
class A(val expected: String) {
val b = B()
fun foo(): A {
with1(b) {
y = expected
}
return this
}
}
class B() {
var y = ""
}
fun box() = A("OK").foo().b.y