Effective visibility: separate InternalProtected and InternalProtectedBound, messages, test change

This commit is contained in:
Mikhail Glukhikh
2015-10-13 14:13:03 +03:00
parent 4dbd7e7f69
commit 8473be357f
3 changed files with 84 additions and 66 deletions
@@ -1,17 +1,12 @@
// See KT-9540
// all protected should have lower bound that is more permissive than private
// protected and internal 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<!>
internal interface E : <!EXPOSED_SUPER_INTERFACE!>B<!>, <!EXPOSED_SUPER_INTERFACE!>D<!>
}
}
// 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<!>
}
}