mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Migrate boxAgainstJava tests to multi-file framework
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
// FILE: test/D.java
|
||||
|
||||
import test.referenceToJavaFieldViaBridge
|
||||
package test;
|
||||
|
||||
class A : referenceToJavaFieldViaBridge() {
|
||||
public class D {
|
||||
protected String field = "OK";
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
import test.D
|
||||
|
||||
class A : D() {
|
||||
fun a(): String {
|
||||
return {field!!}()
|
||||
}
|
||||
@@ -10,4 +18,4 @@ class A : referenceToJavaFieldViaBridge() {
|
||||
|
||||
fun box(): String {
|
||||
return A().a()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user