[FIR] Fix resolution of plugin annotations annotated with meta annotations

There was a problem, that after founding of new annotation with meta
  annotation we did not come back to previous files, which may contain
  declarations with this new annotation
This commit is contained in:
Dmitriy Novozhilov
2022-05-24 09:18:05 +03:00
committed by teamcity
parent 055865a2a1
commit f34061acc1
4 changed files with 52 additions and 20 deletions
@@ -1,4 +1,4 @@
FILE: metaAnnotation.kt
FILE: first.kt
@R|Open|() public open class A : R|kotlin/Any| {
public constructor(): R|A| {
super<R|kotlin/Any|>()
@@ -17,6 +17,7 @@ FILE: metaAnnotation.kt
}
}
FILE: second.kt
@R|org/jetbrains/kotlin/fir/plugin/AllOpen|() public open annotation class Open : R|kotlin/Annotation| {
public constructor(): R|Open| {
super<R|kotlin/Any|>()
@@ -1,4 +1,4 @@
import org.jetbrains.kotlin.fir.plugin.AllOpen
// FILE: first.kt
@Open
class A {
@@ -14,5 +14,8 @@ class B : A() {
}
}
// FILE: second.kt
import org.jetbrains.kotlin.fir.plugin.AllOpen
@AllOpen
annotation class Open
annotation class Open