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
13 lines
211 B
Kotlin
Vendored
13 lines
211 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
class X {
|
|
val foo = object {
|
|
<!NESTED_CLASS_NOT_ALLOWED!>class Foo<!>
|
|
}
|
|
|
|
fun test() {
|
|
object {
|
|
<!NESTED_CLASS_NOT_ALLOWED!>class Foo<!>
|
|
}
|
|
}
|
|
}
|