mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
BoxWithJava tests now by default are loaded with the classloader which has test's classpath in itself, as in the former ClassPathInTheSameClassLoaderTest
18 lines
307 B
Kotlin
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()
|
|
}
|