FIR checker: add diagnostic CANNOT_WEAKEN_ACCESS_PRIVILEGE
This commit is contained in:
committed by
Dmitriy Novozhilov
parent
3a07ca4c64
commit
ca314c5bb9
+2
-2
@@ -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() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user