Files
kotlin-fork/js/js.translator/testData/box/closure/closureThisInExtLambdaInsideMethod.kt
T
2018-09-12 09:49:25 +03:00

11 lines
257 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1287
// KT-4600 Generated wrong code when capturing `this` in extension function inside a method
package foo
public class Foo(val trigger: () -> Any) {
fun test() = myRun { trigger() };
}
fun box() = Foo({ "OK" }).test()