8 lines
142 B
Kotlin
Vendored
8 lines
142 B
Kotlin
Vendored
class X {
|
|
fun g(x: () -> Boolean = { super.equals(this) }) = x()
|
|
}
|
|
|
|
fun box(): String {
|
|
return if (X().g()) "OK" else "Fail: false"
|
|
}
|