mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
The fqname of class should be clear from code Example: can't shorten A.Default.B.Default.C to A.B.C Also fixes problem when nested class of enum class could be accessed via enum entry
13 lines
213 B
Kotlin
13 lines
213 B
Kotlin
//no nested class access via instance reference error
|
|
fun test() {
|
|
A.Default.f(<!TYPE_MISMATCH!>""<!>)
|
|
}
|
|
|
|
class A() {
|
|
class object {
|
|
object f {
|
|
fun invoke(i: Int) = i
|
|
}
|
|
}
|
|
}
|