Files
kotlin/compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnClassObjectOfNestedClass2.kt
2015-09-25 19:20:20 +03:00

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"