Files
kotlin-fork/compiler/testData/resolveAnnotations/parameters/expressions/plus.kt
T
2015-09-18 10:14:32 +03:00

13 lines
243 B
Kotlin
Vendored

package test
annotation class Ann(
val b: Byte,
val s: Short,
val i: Int,
val l: Long
)
@Ann(1 + 1, 1 + 1, 1 + 1, 1 + 1) class MyClass
// EXPECTED: Ann(b = 2.toByte(), i = 2, l = 2.toLong(), s = 2.toShort())