Effective visibility: lower bounds introduced for all protected and for protected and internal #KT-9540 Fixed

This commit is contained in:
Mikhail Glukhikh
2015-10-13 11:02:22 +03:00
parent bee0fb6283
commit 4dbd7e7f69
4 changed files with 135 additions and 6 deletions
@@ -0,0 +1,17 @@
// See KT-9540
// all protected should have lower bound that is more permissive than private
open class A {
private interface B
protected open class C {
protected interface D : <!EXPOSED_SUPER_INTERFACE!>B<!>
}
}
// protected and internal should have lower bound that is more permissive than private
open class AA {
private interface BB
protected open class CC {
internal interface DD : <!EXPOSED_SUPER_INTERFACE!>BB<!>
}
}