Files
kotlin/compiler/testData/diagnostics/tests/objects/invokeOnInnerObject.kt
2014-09-01 12:32:50 +04:00

13 lines
205 B
Kotlin

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