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
10 lines
243 B
Kotlin
Vendored
10 lines
243 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// KT-6026 Exception on instantiating a nested class in an anonymous object
|
|
|
|
val oo = object {
|
|
// Forbidden in KT-13510
|
|
<!NESTED_CLASS_NOT_ALLOWED!>class Nested<!>
|
|
|
|
fun f1() = Nested(<!TOO_MANY_ARGUMENTS!>11<!>)
|
|
}
|