Support for unary expressions

This commit is contained in:
Natalia Ukhorskaya
2013-11-08 16:46:13 +04:00
parent b7b957ffd2
commit 96dc8b42bb
7 changed files with 112 additions and 1 deletions
@@ -0,0 +1,15 @@
package test
annotation class Ann(
val b1: Byte,
val b2: Short,
val b3: Int,
val b4: Long,
val b5: Double,
val b6: Float,
val b7: Char
)
Ann(+1, +1, +1, +1, +1.0, +1.0, +'c') class MyClass
// EXPECTED: Ann[b1 = 1.toByte(): jet.Byte, b2 = 1.toShort(): jet.Short, b3 = 1.toInt(): jet.Int, b4 = 1.toLong(): jet.Long, b5 = 1.0.toDouble(): jet.Double, b6 = 1.0.toDouble(): jet.Double, b7 = 99.toInt(): jet.Int]