mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
13 lines
170 B
Kotlin
Vendored
13 lines
170 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
interface B
|
|
|
|
operator fun B.invoke(i: Int) = i
|
|
|
|
class A {
|
|
companion object: B {
|
|
}
|
|
}
|
|
|
|
fun box() = if (A(42) == 42) "OK" else "fail"
|
|
|