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
@@ -65,7 +65,7 @@ open class L : T {
}
class M : L() {
internal override fun foo() {}
<!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>internal<!> override fun foo() {}
}
//---------------
interface R {
@@ -81,5 +81,5 @@ interface Q : R {
}
class S : P, Q {
internal override fun foo() {}
<!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>internal<!> override fun foo() {}
}