mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-14 00:21:34 +00:00
12 lines
131 B
Kotlin
12 lines
131 B
Kotlin
interface B
|
|
|
|
fun B.invoke(i: Int) = i
|
|
|
|
class A {
|
|
companion object: B {
|
|
}
|
|
}
|
|
|
|
fun box() = if (A(42) == 42) "OK" else "fail"
|
|
|