Files
kotlin/compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnClassObjectOfNestedClass2.kt
Svetlana Isakova b71260f54e Moved tests
that are used both for codegen & diagnostics to codegen/box/diagnostics
2014-11-21 14:02:45 +03:00

12 lines
174 B
Kotlin

import A.Nested
class A {
class Nested {
class object {
fun invoke(i: Int) = i
}
}
}
fun box() = if (Nested(42) == 42) "OK" else "fail"