// EXPECTED_REACHABLE_NODES: 1286 package foo inline fun 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