Files
kotlin-fork/js/js.translator/testData/closure/cases/closureThisInExtLambdaInsideMethod.kt
T
2015-06-17 11:17:08 +03:00

10 lines
223 B
Kotlin
Vendored

// 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()