Support toInt, toChar and etc as CompileTimeConstants
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package test
|
||||
|
||||
annotation class Ann(
|
||||
val b1: Int,
|
||||
val b2: Int,
|
||||
val b3: Int,
|
||||
val b4: Int
|
||||
)
|
||||
|
||||
Ann(1, 1.toInt(), 2147483648.toInt(), 2147483648) class MyClass
|
||||
|
||||
// EXPECTED: Ann[b1 = 1.toInt(): jet.Int, b2 = 1.toInt(): jet.Int, b3 = -2147483648.toInt(): jet.Int, b4 = 2147483648.toLong(): jet.Long]
|
||||
Reference in New Issue
Block a user