FIR: introduce diagnostic NESTED_CLASS_NOT_ALLOWED

This commit is contained in:
Tianyu Geng
2021-02-19 15:52:43 -08:00
committed by Mikhail Glukhikh
parent c5cabce2d5
commit 724ca1d3ee
39 changed files with 125 additions and 103 deletions
@@ -1,12 +1,12 @@
// SKIP_TXT
class Outer {
inner class Inner1 {
object Obj1
<!NESTED_CLASS_NOT_ALLOWED!>object Obj1<!>
companion object Obj2
companion <!NESTED_CLASS_NOT_ALLOWED!>object Obj2<!>
inner class Inner2 {
object Obj3
<!NESTED_CLASS_NOT_ALLOWED!>object Obj3<!>
}
}
}