Migrate boxAgainstJava tests to multi-file framework
This commit is contained in:
+13
-3
@@ -1,9 +1,19 @@
|
||||
class Derived(): simpleFun() {
|
||||
// FILE: Base.java
|
||||
|
||||
public class Base {
|
||||
protected static String protectedFun() {
|
||||
return "OK";
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
class Derived : Base() {
|
||||
fun test(): String {
|
||||
return simpleFun.protectedFun()!!
|
||||
return Base.protectedFun()!!
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return Derived().test()
|
||||
return Derived().test()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user