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

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"