blob: 4f3081eab143b526c1596360596e86afa2fc7741 [file]
// RUN_PIPELINE_TILL: FRONTEND
//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
}
}
}
/* GENERATED_FIR_TAGS: classDeclaration, companionObject, functionDeclaration, nestedClass, objectDeclaration, operator,
primaryConstructor, stringLiteral */