[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:
+10
@@ -0,0 +1,10 @@
|
||||
// COMPILATION_ERRORS
|
||||
annotation class Ann0
|
||||
interface I
|
||||
class Foo {
|
||||
fun foo() {
|
||||
val i = object : I {
|
||||
@<caret>Ann0 @Suppress
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Ann0) constructor()
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// COMPILATION_ERRORS
|
||||
annotation class Ann0
|
||||
interface I
|
||||
class Foo {
|
||||
@<caret>Ann0 @Suppress
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Ann0) constructor()
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// COMPILATION_ERRORS
|
||||
annotation class Ann0
|
||||
class Foo {
|
||||
fun foo() {
|
||||
class Local {
|
||||
@<caret>Ann0 @Suppress
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Ann0) constructor()
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
// COMPILATION_ERRORS
|
||||
annotation class Ann0
|
||||
@<caret>Ann0 @Suppress
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
0: (in Ann0) constructor()
|
||||
Reference in New Issue
Block a user