Files
kotlin/compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/overrideProtectedFunInPackage.kt
2014-06-26 20:57:40 +04:00

18 lines
307 B
Kotlin

package protectedPackKotlin
import protectedPack.overrideProtectedFunInPackage
class Derived: overrideProtectedFunInPackage() {
protected override fun foo(): String? {
return "OK"
}
fun test(): String {
return foo()!!
}
}
fun box(): String {
return Derived().test()
}