20 lines
316 B
Kotlin
Vendored
20 lines
316 B
Kotlin
Vendored
// EXPECTED_REACHABLE_NODES: 1286
|
|
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 |