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

13 lines
217 B
Kotlin
Vendored

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