mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
11 lines
245 B
Kotlin
Vendored
11 lines
245 B
Kotlin
Vendored
open class A {
|
|
internal open fun test(): String = "Kotlin"
|
|
}
|
|
|
|
fun box(): String {
|
|
if (A().test() != "Kotlin") return "fail 1: ${A().test()}"
|
|
|
|
if (JavaClass().test() != "Java") return "fail 2: ${JavaClass().test()}"
|
|
|
|
return "OK"
|
|
} |