Effective visibility: lower bounds introduced for all protected and for protected and internal #KT-9540 Fixed
This commit is contained in:
@@ -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<!>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user