debbfa8397
Merge-request: KT-MR-8509 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
28 lines
576 B
Kotlin
Vendored
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
|