[FIR JS] Implement FirJsRuntimeAnnotationChecker

This commit is contained in:
Nikolay Lunyak
2023-01-04 16:29:19 +02:00
committed by Space Team
parent 56285bb2d6
commit 7b8f5f9980
12 changed files with 97 additions and 69 deletions
@@ -1,59 +0,0 @@
@Retention(AnnotationRetention.BINARY)
annotation class X
@Retention(AnnotationRetention.RUNTIME)
annotation class Y
@X
external class A {
@X
fun f()
@X
val p: Int
@get:X
val r: Int
}
@Y
external class B {
@Y
fun f()
@Y
val p: Int
@get:Y
val r: Int
}
@X
class C {
@X
fun f() {}
@X
val p: Int = 0
val q: Int
@X get() = 0
@get:X
val r: Int = 0
}
@Y
class D {
@Y
fun f() {}
@Y
val p: Int = 0
val q: Int
@Y get() = 0
@get:Y
val r: Int = 0
}
@@ -1,3 +1,5 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: +RUNTIME_ANNOTATION_NOT_SUPPORTED
@Retention(AnnotationRetention.BINARY)
annotation class X