Drop KotlinTarget.INNER_CLASS entry

In most of the cases it was used together with CLASS_ONLY and vice versa
They only case when CLASS_ONLY was used without INNER_CLASS
is possibleParentTargetMap.COMPANION_KEYWORD.

But after diagnostic NESTED_OBJECT_NOT_ALLOWED has been introduced,
there's no sense in the restriction of exactly the companion's parent

For clarification see test data changed
This commit is contained in:
Denis Zharkov
2017-02-17 17:39:36 +03:00
parent d1b17f050b
commit a3baca829f
7 changed files with 29 additions and 34 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ class Outer {
inner class Inner1 {
<!NESTED_OBJECT_NOT_ALLOWED!>object Obj1<!>
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>companion<!> object Obj2
companion <!NESTED_OBJECT_NOT_ALLOWED!>object Obj2<!>
inner class Inner2 {
<!NESTED_OBJECT_NOT_ALLOWED!>object Obj3<!>