Files
kotlin-fork/js/js.translator/testData/closure/cases/closureThisInExtLambdaInsideMethod.kt
T
2014-10-06 23:18:53 +04:00

10 lines
219 B
Kotlin

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