Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/annotations/kindaCompilerRequiredNestedAnnotation.fir.txt
T
Dmitriy Novozhilov 0325ffaa01 [FIR] Properly handle nested annotations on compiler-required annotation phase
There was a case when we visited the same declaration multiple times
  because of forward-referencing and visiting with designation
So because of this there were two changes required:
- remove assertion about visiting the same declaration twice (it's fine
  since we don't actually resolve annotations twice)
- not skipping resolution of class children if annotations on this class
  are already resolved

^KT-61388 Fixed
KT-62854
2023-10-24 11:44:21 +00:00

29 lines
742 B
Plaintext
Vendored

FILE: a.kt
@R|SinceKotlin|() public final class Some : R|kotlin/Any| {
public constructor(): R|Some| {
super<R|kotlin/Any|>()
}
}
FILE: b.kt
@R|SinceKotlin.SinceKotlin|() public final class Other : R|kotlin/Any| {
public constructor(): R|Other| {
super<R|kotlin/Any|>()
}
}
FILE: SinceKotlin.kt
public final annotation class SinceKotlin : R|kotlin/Annotation| {
public constructor(): R|SinceKotlin| {
super<R|kotlin/Any|>()
}
public final annotation class SinceKotlin : R|kotlin/Annotation| {
public constructor(): R|SinceKotlin.SinceKotlin| {
super<R|kotlin/Any|>()
}
}
}