Specialize diagnostic message for nested classes not allowed
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// SKIP_TXT
|
||||
class Outer {
|
||||
inner class Inner1 {
|
||||
<!NESTED_OBJECT_NOT_ALLOWED!>object Obj1<!>
|
||||
<!NESTED_CLASS_NOT_ALLOWED(Object)!>object Obj1<!>
|
||||
|
||||
companion <!NESTED_OBJECT_NOT_ALLOWED!>object Obj2<!>
|
||||
companion <!NESTED_CLASS_NOT_ALLOWED(Companion object)!>object Obj2<!>
|
||||
|
||||
inner class Inner2 {
|
||||
<!NESTED_OBJECT_NOT_ALLOWED!>object Obj3<!>
|
||||
<!NESTED_CLASS_NOT_ALLOWED(Object)!>object Obj3<!>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user