[FIR] Fix handling of WRONG_MODIFIER_TARGET

Implement DEPRECATED_MODIFIER, DEPRECATED_MODIFIER_FOR_TARGET, REDUNDANT_MODIFIER_FOR_TARGET
This commit is contained in:
Ivan Kochurkin
2021-08-04 20:20:38 +03:00
committed by TeamCityServer
parent e85940a1ac
commit cd6384eb20
114 changed files with 504 additions and 1033 deletions
@@ -1,3 +0,0 @@
fun foo() {
sealed class My
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
fun foo() {
<!WRONG_MODIFIER_TARGET!>sealed<!> class My
}
@@ -1,6 +0,0 @@
sealed enum class SealedEnum {
FIRST,
SECOND;
class Derived: SealedEnum()
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
<!WRONG_MODIFIER_TARGET!>sealed<!> enum class SealedEnum {
FIRST,
SECOND;
@@ -1,3 +0,0 @@
sealed object Sealed {
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
<!WRONG_MODIFIER_TARGET!>sealed<!> object Sealed {
}