0d19942d2c
It would be nice to report more appropriate diagnostics at the corresponding places, but right now it's more important to fix greenness-redness problems. Plus, this is already how K1 works. ^KT-59900 Fixed
32 lines
693 B
Kotlin
Vendored
32 lines
693 B
Kotlin
Vendored
object A {
|
|
object B {
|
|
object C
|
|
}
|
|
|
|
interface X
|
|
|
|
val a = object : Any() {
|
|
<!LOCAL_OBJECT_NOT_ALLOWED!>object D<!> {
|
|
<!LOCAL_OBJECT_NOT_ALLOWED!>object G<!>
|
|
<!NESTED_CLASS_NOT_ALLOWED!>interface Z<!>
|
|
}
|
|
|
|
<!NESTED_CLASS_NOT_ALLOWED!>interface Y<!>
|
|
}
|
|
|
|
fun b() {
|
|
<!LOCAL_OBJECT_NOT_ALLOWED!>object E<!> {
|
|
<!LOCAL_OBJECT_NOT_ALLOWED!>object F<!>
|
|
<!NESTED_CLASS_NOT_ALLOWED!>interface M<!>
|
|
}
|
|
|
|
<!LOCAL_INTERFACE_NOT_ALLOWED!>interface N<!>
|
|
|
|
val c = object : Any() {
|
|
val t = "test"
|
|
|
|
<!NESTED_CLASS_NOT_ALLOWED!>interface U<!>
|
|
}
|
|
}
|
|
}
|