[FIR] Make reporting of local class diagnostics more consistent with K1

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
This commit is contained in:
Nikolay Lunyak
2023-08-30 15:54:11 +03:00
committed by Space Team
parent 9b114335fb
commit 0d19942d2c
12 changed files with 31 additions and 58 deletions
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
class X {
val foo = object {
<!NESTED_CLASS_NOT_ALLOWED!>class Foo<!>