File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,14 @@ extension Parser.Lookahead {
178
178
}
179
179
180
180
while let _ = self . consume ( if: . atSign) {
181
- self . expectIdentifierOrRethrowsWithoutRecovery ( )
181
+ // Consume qualified names that may or may not involve generic arguments.
182
+ repeat {
183
+ self . expectIdentifierOrRethrowsWithoutRecovery ( )
184
+ // We don't care whether this succeeds or fails to eat generic
185
+ // parameters.
186
+ _ = self . consumeGenericArguments ( )
187
+ } while self . consume ( if: . period) != nil
188
+
182
189
if self . consume ( if: . leftParen) != nil {
183
190
while !self . at ( any: [ . eof, . rightParen, . poundEndifKeyword] ) {
184
191
self . skipSingle ( )
Original file line number Diff line number Diff line change @@ -96,4 +96,11 @@ final class AttributeTests: XCTestCase {
96
96
"""
97
97
)
98
98
}
99
+
100
+ func testQualifiedAttribute( ) {
101
+ AssertParse (
102
+ """
103
+ @_Concurrency.MainActor(unsafe) public struct Image : SwiftUI.View {}
104
+ """ )
105
+ }
99
106
}
You can’t perform that action at this time.
0 commit comments