Support toInt, toChar and etc as CompileTimeConstants
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package test
|
||||
|
||||
annotation class Ann(
|
||||
val b1: Char,
|
||||
val b2: Char,
|
||||
val b3: Int,
|
||||
val b4: Long,
|
||||
val b5: Byte,
|
||||
val b6: Short,
|
||||
val b7: Double,
|
||||
val b8: Float
|
||||
)
|
||||
|
||||
Ann('c', 99.toChar(), 'c'.toInt(), 'c'.toLong(), 'c'.toByte(), 'c'.toShort(), 'c'.toDouble(), 'c'.toFloat()) class MyClass
|
||||
|
||||
// EXPECTED: Ann[b1 = #99(c): jet.Char, b2 = #99(c): jet.Char, b3 = 99.toInt(): jet.Int, b4 = 99.toLong(): jet.Long, b5 = 99.toByte(): jet.Byte, b6 = 99.toShort(): jet.Short, b7 = 99.0.toDouble(): jet.Double, b8 = 99.0.toFloat(): jet.Float]
|
||||
Reference in New Issue
Block a user