Merge boxWithStdlib testData into box, delete BoxWithStdlib test
This commit is contained in:
committed by
Alexander Udalov
parent
22bfc9786a
commit
06a67e6602
@@ -0,0 +1,22 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class Ann(
|
||||
val b: Byte,
|
||||
val s: Short,
|
||||
val i: Int,
|
||||
val l: Long
|
||||
)
|
||||
|
||||
@Ann(1 / 1, 1 / 1, 1 / 1, 1 / 1) class MyClass
|
||||
|
||||
fun box(): String {
|
||||
val annotation = MyClass::class.java.getAnnotation(Ann::class.java)!!
|
||||
if (annotation.b != 1.toByte()) return "fail 1"
|
||||
if (annotation.s != 1.toShort()) return "fail 2"
|
||||
if (annotation.i != 1) return "fail 2"
|
||||
if (annotation.l != 1.toLong()) return "fail 2"
|
||||
return "OK"
|
||||
}
|
||||
|
||||
// EXPECTED: Ann[b = IntegerValueType(1): IntegerValueType(1), i = IntegerValueType(1): IntegerValueType(1), l = IntegerValueType(1): IntegerValueType(1), s = IntegerValueType(1): IntegerValueType(1)]
|
||||
Reference in New Issue
Block a user