Files
kotlin-fork/analysis/low-level-api-fir/testData/fileStructure/danglingAnnotationInMiddle.lazy.resolve.txt
Dmitrii Gridin 31852c6c05 [LL FIR] FileStructure: support dangling modifier list in non-end position
The root cause of the exception is that we missed such an element, and
it led to unresolved declaration during iteration over file declarations

^KT-65562 Fixed
2024-02-12 23:14:12 +00:00

15 lines
567 B
Plaintext
Vendored

FILE: [ResolvedTo(BODY_RESOLVE)] danglingAnnotationInMiddle.kt
public final [ResolvedTo(BODY_RESOLVE)] annotation class MyAnn : R|kotlin/Annotation| {
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|MyAnn| {
super<R|kotlin/Any|>()
}
}
public final [ResolvedTo(BODY_RESOLVE)] class Foo : R|kotlin/Any| {
public [ResolvedTo(BODY_RESOLVE)] constructor(): R|Foo| {
super<R|kotlin/Any|>()
}
}
[ResolvedTo(BODY_RESOLVE)] @R|MyAnn|[Types]() <DANGLING MODIFIER: Top level declaration expected>