Files
kotlin/compiler/testData/diagnostics/tests/objects/invokeOnInnerObject.kt
2015-09-25 19:20:20 +03:00

13 lines
228 B
Kotlin
Vendored

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