Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/annotations/kindaCompilerRequiredNestedAnnotation.kt
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

14 lines
200 B
Kotlin
Vendored

// ISSUE: KT-61388
// FILE: a.kt
@SinceKotlin
class Some
// FILE: b.kt
@SinceKotlin.SinceKotlin
class Other
// FILE: SinceKotlin.kt
annotation class SinceKotlin {
annotation class SinceKotlin
}