FIR: introduce diagnostic NESTED_CLASS_NOT_ALLOWED
This commit is contained in:
committed by
Mikhail Glukhikh
parent
c5cabce2d5
commit
724ca1d3ee
@@ -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<!>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user