Minor, uncomment UInt in annotation instantiation test

KT-49998 is fixed so now it works.
This commit is contained in:
Alexander Udalov
2021-12-22 00:39:59 +01:00
parent 56fe62b7fb
commit 898c46c124
@@ -22,10 +22,9 @@ annotation class OtherArrays(
val namesArray: Array<JvmName> = [JvmName("foo")]
)
// Uncomment when KT-49998 is resolved
//annotation class UnsignedValue(
// val uint: UInt = 2147483657U // Int.MAX_VALUE + 10
//)
annotation class UnsignedValue(
val uint: UInt = 2147483657U // Int.MAX_VALUE + 10
)
// MODULE: app(lib)
// FILE: app.kt
@@ -45,7 +44,7 @@ class C {
fun two(): Metadata = Metadata()
fun three(): Deprecated = Deprecated("foo")
fun four(): OtherArrays = OtherArrays()
// fun five(): UnsignedValue = UnsignedValue()
fun five(): UnsignedValue = UnsignedValue()
}
fun box(): String {
@@ -63,6 +62,6 @@ fun box(): String {
"""@a.OtherArrays(annotationsArray=[], doublesArray=[], enumArray=[], namesArray=[@kotlin.jvm.JvmName(name=foo)])""",
C().four().toString()
)
// assertEquals(Int.MAX_VALUE.toUInt() + 10.toUInt(), C().five().uint)
assertEquals(Int.MAX_VALUE.toUInt() + 10.toUInt(), C().five().uint)
return "OK"
}