Fix inheritance from protected members of interfaces

#KT-3029 Fixed
This commit is contained in:
Alexander Udalov
2015-09-09 12:31:20 +03:00
parent bb17724f96
commit a1a2adf523
5 changed files with 86 additions and 4 deletions
@@ -0,0 +1,15 @@
interface A {
protected fun foo(): String
fun box() = foo()
}
interface B : A
interface C : A {
protected override fun foo() = "OK"
}
class D : B, C
fun box() = D().box()