mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
10 lines
172 B
Kotlin
Vendored
10 lines
172 B
Kotlin
Vendored
class A {
|
|
class Nested {
|
|
companion object {
|
|
operator fun invoke(i: Int) = i
|
|
}
|
|
}
|
|
}
|
|
|
|
fun box() = if (A.Nested(42) == 42) "OK" else "fail"
|