Files
kotlin-fork/compiler/testData/codegen/box/extensionFunctions/kt3646.kt
T
2016-11-09 21:41:12 +03:00

14 lines
255 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun test(cl: Int.() -> Int):Int = 11.cl()
class Foo {
val a = test { this }
}
fun box(): String {
if (Foo().a != 11) return "fail"
return "OK"
}