Files
kotlin-fork/compiler/testData/codegen/box/secondaryConstructors/delegatedThisWithLambda.kt
T
2018-06-28 12:26:41 +02:00

10 lines
197 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
class A(val f: () -> Int) {
constructor() : this({ 23 })
}
fun box(): String {
val result = A().f()
if (result != 23) return "fail: $result"
return "OK"
}