mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Migrate boxAgainstJava tests to multi-file framework
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
// FILE: Foo.java
|
||||
|
||||
class Foo {
|
||||
public static final int i = -2;
|
||||
public static final short s = -2;
|
||||
public static final float f = -2f;
|
||||
public static final double d = -2.0;
|
||||
public static final long l = -2L;
|
||||
public static final byte b = -2;
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
@Ann(Foo.i, Foo.s, Foo.f, Foo.d, Foo.l, Foo.b) class MyClass
|
||||
|
||||
fun box(): String {
|
||||
@@ -20,4 +33,4 @@ annotation class Ann(
|
||||
val d: Double,
|
||||
val l: Long,
|
||||
val b: Byte
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user