Files
kotlin-fork/compiler/testData/diagnostics/tests/objects/invokeOnInnerObject.fir.kt
T

13 lines
237 B
Kotlin
Vendored

//no nested class access via instance reference error
fun test() {
A.Companion.f(<!ARGUMENT_TYPE_MISMATCH!>""<!>)
}
class A() {
companion object {
object f {
operator fun invoke(i: Int) = i
}
}
}