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,6 +1,17 @@
|
||||
// FILE: J.java
|
||||
|
||||
public class J {
|
||||
public final String result;
|
||||
|
||||
public J(String result) {
|
||||
this.result = result;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
import kotlin.reflect.*
|
||||
import kotlin.reflect.jvm.*
|
||||
import javaConstructor as J
|
||||
|
||||
fun box(): String {
|
||||
val reference = ::J
|
||||
|
||||
Reference in New Issue
Block a user