Report 'nested class accessed via instance reference' error
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
//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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user