mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
27 lines
361 B
Kotlin
Vendored
27 lines
361 B
Kotlin
Vendored
// FILE: First.java
|
|
|
|
public abstract class First {
|
|
protected static String TEST = "O";
|
|
|
|
protected static String test() {
|
|
return "K";
|
|
}
|
|
}
|
|
|
|
// FILE: Kotlin.kt
|
|
|
|
package anotherPackage
|
|
|
|
import First
|
|
|
|
class Test : First() {
|
|
|
|
inline fun doTest(): String {
|
|
return TEST + test()
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return Test().doTest()
|
|
}
|