Migrate boxWithJava tests to multi-file framework
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// 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()
|
||||
}
|
||||
Reference in New Issue
Block a user