mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
12 lines
140 B
Kotlin
Vendored
12 lines
140 B
Kotlin
Vendored
interface B
|
|
|
|
operator fun B.invoke(i: Int) = i
|
|
|
|
class A {
|
|
companion object: B {
|
|
}
|
|
}
|
|
|
|
fun box() = if (A(42) == 42) "OK" else "fail"
|
|
|