Files
kotlin/compiler/testData/codegen/box/diagnostics/functions/invoke/onObjects/invokeOnClassObjectOfNestedClass2.kt
2020-04-02 12:10:50 +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"