mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
Migrate boxWithJava tests to multi-file framework
This commit is contained in:
20
compiler/testData/codegen/boxWithJava/interfaces/inheritJavaInterface.kt
vendored
Normal file
20
compiler/testData/codegen/boxWithJava/interfaces/inheritJavaInterface.kt
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// FILE: MyInt.java
|
||||
|
||||
public interface MyInt {
|
||||
|
||||
String test();
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
interface A : MyInt {
|
||||
override public fun test(): String? {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
class B: A
|
||||
|
||||
fun box() : String {
|
||||
return B().test()!!
|
||||
}
|
||||
Reference in New Issue
Block a user