[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
This commit is contained in:
committed by
Space Team
parent
80240198d2
commit
31852c6c05
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
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>
|
||||
Reference in New Issue
Block a user