mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Includes changes to decompiled text Old syntax is used in builtins and project code for now
9 lines
118 B
Kotlin
9 lines
118 B
Kotlin
class A {
|
|
default object {
|
|
fun invoke(i: Int) = i
|
|
}
|
|
}
|
|
|
|
fun box() = if (A(42) == 42) "OK" else "fail"
|
|
|