Files
kotlin-fork/compiler/testData/codegen/box/extensionFunctions/kt3646.kt
T
2019-11-19 11:00:09 +03:00

12 lines
189 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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"
}