Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/parameters/short.kt
T
2021-07-15 17:08:17 +00:00

12 lines
316 B
Kotlin
Vendored

package test
annotation class Ann(
val b1: Short,
val b2: Short,
val b3: Short,
val b4: Short
)
@Ann(1, 1.toShort(), 32768.toShort(), <!CONSTANT_EXPECTED_TYPE_MISMATCH!>32768<!>) class MyClass
// EXPECTED: @Ann(b1 = 1.toShort(), b2 = 1.toShort(), b3 = -32768.toShort(), b4 = 32768)