[FIR] Fix handling of WRONG_MODIFIER_TARGET
Implement DEPRECATED_MODIFIER, DEPRECATED_MODIFIER_FOR_TARGET, REDUNDANT_MODIFIER_FOR_TARGET
This commit is contained in:
committed by
TeamCityServer
parent
e85940a1ac
commit
cd6384eb20
@@ -1,45 +0,0 @@
|
||||
// !LANGUAGE: -InnerClassInEnumEntryClass
|
||||
inner fun foo() {}
|
||||
inner val prop = 42
|
||||
|
||||
inner class A
|
||||
inner interface B
|
||||
inner object C
|
||||
|
||||
class D {
|
||||
inner class E
|
||||
inner interface F
|
||||
inner object G
|
||||
inner enum class R
|
||||
inner annotation class S
|
||||
inner companion object
|
||||
}
|
||||
|
||||
enum class H {
|
||||
I0 {
|
||||
inner class II0
|
||||
},
|
||||
inner I {
|
||||
inner class II
|
||||
};
|
||||
|
||||
inner class J
|
||||
}
|
||||
|
||||
interface K {
|
||||
inner class L
|
||||
}
|
||||
|
||||
object N {
|
||||
inner class O
|
||||
}
|
||||
|
||||
class P {
|
||||
companion object {
|
||||
inner class Q
|
||||
}
|
||||
}
|
||||
|
||||
val R = object {
|
||||
inner class S
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: -InnerClassInEnumEntryClass
|
||||
<!WRONG_MODIFIER_TARGET!>inner<!> fun foo() {}
|
||||
<!WRONG_MODIFIER_TARGET!>inner<!> val prop = 42
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
// !LANGUAGE: +InnerClassInEnumEntryClass
|
||||
inner fun foo() {}
|
||||
inner val prop = 42
|
||||
|
||||
inner class A
|
||||
inner interface B
|
||||
inner object C
|
||||
|
||||
class D {
|
||||
inner class E
|
||||
inner interface F
|
||||
inner object G
|
||||
inner enum class R
|
||||
inner annotation class S
|
||||
inner companion object
|
||||
}
|
||||
|
||||
enum class H {
|
||||
I0 {
|
||||
inner class II0
|
||||
},
|
||||
inner I {
|
||||
inner class II
|
||||
};
|
||||
|
||||
inner class J
|
||||
}
|
||||
|
||||
interface K {
|
||||
inner class L
|
||||
}
|
||||
|
||||
object N {
|
||||
inner class O
|
||||
}
|
||||
|
||||
class P {
|
||||
companion object {
|
||||
inner class Q
|
||||
}
|
||||
}
|
||||
|
||||
val R = object {
|
||||
inner class S
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: +InnerClassInEnumEntryClass
|
||||
<!WRONG_MODIFIER_TARGET!>inner<!> fun foo() {}
|
||||
<!WRONG_MODIFIER_TARGET!>inner<!> val prop = 42
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ enum class Enum {
|
||||
|
||||
<!LOCAL_OBJECT_NOT_ALLOWED!>object TestObject<!>
|
||||
|
||||
enum class TestEnumClass {
|
||||
<!WRONG_MODIFIER_TARGET!>enum<!> class TestEnumClass {
|
||||
OTHER_ENTRY
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ enum class Enum {
|
||||
|
||||
<!LOCAL_OBJECT_NOT_ALLOWED!>object TestObject<!>
|
||||
|
||||
enum class TestEnumClass {
|
||||
<!WRONG_MODIFIER_TARGET!>enum<!> class TestEnumClass {
|
||||
OTHER_ENTRY
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ enum class Enum {
|
||||
|
||||
<!LOCAL_OBJECT_NOT_ALLOWED!>object TestObject<!>
|
||||
|
||||
enum class TestEnumClass {
|
||||
<!WRONG_MODIFIER_TARGET!>enum<!> class TestEnumClass {
|
||||
OTHER_ENTRY
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user