FIR IDE: introduce HLRedundantVisibilityModifierInspection by extended checker

This commit is contained in:
Ilya Kirillov
2021-02-11 16:51:42 +01:00
parent 6d97841f38
commit e8f3ebdd19
21 changed files with 286 additions and 9 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.fir.inspections.diagnosticBased.HLRedundantVisibilityModifierInspection
@@ -1,3 +1,5 @@
private class Foo {
<caret>internal fun bar() {}
}
}
// IGNORE_FIR KT-44939
@@ -1,3 +1,5 @@
private class Foo {
fun bar() {}
}
}
// IGNORE_FIR KT-44939
@@ -12,3 +12,5 @@ fun main() {
val c = C()
c.attribute = "test"
}
// IGNORE_FIR KT-44939
@@ -12,3 +12,5 @@ fun main() {
val c = C()
c.attribute = "test"
}
// IGNORE_FIR KT-44939
@@ -15,4 +15,6 @@ class C : B() {
fun main() {
val c = C()
c.attribute = "test"
}
}
// IGNORE_FIR KT-44939
@@ -15,4 +15,6 @@ class C : B() {
fun main() {
val c = C()
c.attribute = "test"
}
}
// IGNORE_FIR KT-44939