Minor, uncomment UInt in annotation instantiation test
KT-49998 is fixed so now it works.
This commit is contained in:
@@ -22,10 +22,9 @@ annotation class OtherArrays(
|
|||||||
val namesArray: Array<JvmName> = [JvmName("foo")]
|
val namesArray: Array<JvmName> = [JvmName("foo")]
|
||||||
)
|
)
|
||||||
|
|
||||||
// Uncomment when KT-49998 is resolved
|
annotation class UnsignedValue(
|
||||||
//annotation class UnsignedValue(
|
val uint: UInt = 2147483657U // Int.MAX_VALUE + 10
|
||||||
// val uint: UInt = 2147483657U // Int.MAX_VALUE + 10
|
)
|
||||||
//)
|
|
||||||
|
|
||||||
// MODULE: app(lib)
|
// MODULE: app(lib)
|
||||||
// FILE: app.kt
|
// FILE: app.kt
|
||||||
@@ -45,7 +44,7 @@ class C {
|
|||||||
fun two(): Metadata = Metadata()
|
fun two(): Metadata = Metadata()
|
||||||
fun three(): Deprecated = Deprecated("foo")
|
fun three(): Deprecated = Deprecated("foo")
|
||||||
fun four(): OtherArrays = OtherArrays()
|
fun four(): OtherArrays = OtherArrays()
|
||||||
// fun five(): UnsignedValue = UnsignedValue()
|
fun five(): UnsignedValue = UnsignedValue()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
@@ -63,6 +62,6 @@ fun box(): String {
|
|||||||
"""@a.OtherArrays(annotationsArray=[], doublesArray=[], enumArray=[], namesArray=[@kotlin.jvm.JvmName(name=foo)])""",
|
"""@a.OtherArrays(annotationsArray=[], doublesArray=[], enumArray=[], namesArray=[@kotlin.jvm.JvmName(name=foo)])""",
|
||||||
C().four().toString()
|
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"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user