FIR checker: add diagnostic CANNOT_WEAKEN_ACCESS_PRIVILEGE

This commit is contained in:
Jinseong Jeon
2021-01-28 23:22:07 -08:00
committed by Dmitriy Novozhilov
parent 3a07ca4c64
commit ca314c5bb9
8 changed files with 83 additions and 16 deletions
+2 -2
View File
@@ -28,11 +28,11 @@ class D : C(), T {
}
class E : C(), T {
internal override fun foo() {}
<!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>internal<!> override fun foo() {}
}
class F : C(), T {
<!INCOMPATIBLE_MODIFIERS!>private<!> <!INCOMPATIBLE_MODIFIERS!>override<!> fun foo() {}
<!CANNOT_WEAKEN_ACCESS_PRIVILEGE, INCOMPATIBLE_MODIFIERS!>private<!> <!INCOMPATIBLE_MODIFIERS!>override<!> fun foo() {}
}
class G : C(), T {