Files
kotlin-fork/native/native.tests/testData/klibContents/builtinsSerializer/annotationArguments/primitives.kt
T
Vladimir Sukharev debbfa8397 [K2/N] Add klib contents serialization tests from old testinfra
Merge-request: KT-MR-8509
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2023-01-27 23:30:45 +00:00

28 lines
576 B
Kotlin
Vendored

// KT-56189 error: an annotation argument must be a compile-time constant
// -3.14 is not constant
// MUTED_WHEN: K2
package test
annotation class Primitives(
val byte: Byte,
val char: Char,
val short: Short,
val int: Int,
val long: Long,
val float: Float,
val double: Double,
val boolean: Boolean
)
@Primitives(
byte = 7,
char = '%',
short = 239,
int = 239017,
long = 123456789123456789L,
float = 2.72f,
double = -3.14,
boolean = true
)
class C