[compiler] introduce dedicated Fir declaration for dangling modifier lists (KTIJ-23008)
ensure fir annotations are included in FirDanglingModifierList and resolved, dedicated DanglingTopLevelModifierListStructureElement exists for top level lists only, class level lists are processed by containing structure element
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// FIR_IDENTICAL
|
||||
annotation class Ann
|
||||
annotation class Ann2
|
||||
|
||||
interface I {}
|
||||
class C {
|
||||
fun foo() {
|
||||
class Local {
|
||||
@@ -9,6 +10,12 @@ class C {
|
||||
@Ann2(<!TOO_MANY_ARGUMENTS!>1<!>)
|
||||
@<!UNRESOLVED_REFERENCE!>Ann4<!><!SYNTAX!><!>
|
||||
}
|
||||
val i = object : I {
|
||||
@<!UNRESOLVED_REFERENCE!>Ann0<!>
|
||||
@Ann @<!UNRESOLVED_REFERENCE!>Ann3<!>
|
||||
@Ann2(<!TOO_MANY_ARGUMENTS!>1<!>)
|
||||
@<!UNRESOLVED_REFERENCE!>Ann4<!><!SYNTAX!><!>
|
||||
}
|
||||
}
|
||||
@<!UNRESOLVED_REFERENCE!>Ann0<!>
|
||||
@Ann @<!UNRESOLVED_REFERENCE!>Ann3<!>
|
||||
|
||||
Reference in New Issue
Block a user