Specialize diagnostic message for nested classes not allowed

This commit is contained in:
Dmitry Petrov
2017-09-07 14:06:55 +03:00
parent dd9ffd10b6
commit 488a825349
17 changed files with 237 additions and 36 deletions
+3 -3
View File
@@ -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<!>
}
}
}