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

9 lines
172 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class X {
fun g(x: () -> Boolean = { super.equals(this) }) = x()
}
fun box(): String {
return if (X().g()) "OK" else "Fail: false"
}