mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
IrDeclarationOrigin.FILE_CLASS is used in CallableReferenceLowering to generate correct declaration owner. Many reflection tests start to fail with this commit because they are now treating callable references to top level declarations as Kotlin symbols and fail because there's no JVM signature for them; this is fixed in subsequent commits (previously, they worked because without Kotlin metadata, these files were treated as Java classes)
16 lines
390 B
Kotlin
Vendored
16 lines
390 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// IGNORE_BACKEND: JS_IR
|
|
// TODO: muted automatically, investigate should it be ran for JS or not
|
|
// IGNORE_BACKEND: JS, NATIVE
|
|
|
|
// WITH_REFLECT
|
|
|
|
@Retention(AnnotationRetention.RUNTIME)
|
|
annotation class Simple(val value: String)
|
|
|
|
fun test(@Simple("OK") x: Int) {}
|
|
|
|
fun box(): String {
|
|
return (::test.parameters.single().annotations.single() as Simple).value
|
|
}
|