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