[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,9 +0,0 @@
|
||||
// See EA-73584
|
||||
data class<!SYNTAX!><!> {
|
||||
|
||||
}
|
||||
|
||||
// See KT-9296
|
||||
data interface<!SYNTAX!><!> {
|
||||
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// See EA-73584
|
||||
data class<!SYNTAX!><!> {
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
data object Object<!CONSTRUCTOR_IN_OBJECT!>(val x: Int, val y: Int)<!>
|
||||
@@ -1 +1,2 @@
|
||||
// FIR_IDENTICAL
|
||||
<!WRONG_MODIFIER_TARGET!>data<!> object Object<!CONSTRUCTOR_IN_OBJECT!>(val x: Int, val y: Int)<!>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
data enum class First(val x: Int) {
|
||||
<!WRONG_MODIFIER_TARGET!>data<!> enum class First(val x: Int) {
|
||||
A(1),
|
||||
B(2)
|
||||
}
|
||||
|
||||
data object Second
|
||||
<!WRONG_MODIFIER_TARGET!>data<!> object Second
|
||||
|
||||
data interface Third
|
||||
<!WRONG_MODIFIER_TARGET!>data<!> interface Third
|
||||
|
||||
data annotation class Fourth(val x: Int)
|
||||
<!WRONG_MODIFIER_TARGET!>data<!> annotation class Fourth(val x: Int)
|
||||
|
||||
Reference in New Issue
Block a user