File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1907,10 +1907,11 @@ extension Parser {
1907
1907
let ( unexpectedBeforeIdentifier, identifier) = self . expectIdentifier ( )
1908
1908
var types = [ RawDesignatedTypeElementSyntax] ( )
1909
1909
while let comma = self . consume ( if: . comma) {
1910
- let ( unexpectedBeforeDesignatedType, designatedType) = self . expectIdentifier ( )
1910
+ // FIXME: The compiler accepts... anything here. This is a bug.
1911
+ // let (unexpectedBeforeDesignatedType, designatedType) = self.expectIdentifier()
1912
+ let designatedType = self . consumeAnyToken ( )
1911
1913
types. append ( RawDesignatedTypeElementSyntax (
1912
1914
leadingComma: comma,
1913
- unexpectedBeforeDesignatedType,
1914
1915
name: designatedType,
1915
1916
arena: self . arena) )
1916
1917
}
Original file line number Diff line number Diff line change @@ -357,6 +357,7 @@ final class DeclarationTests: XCTestCase {
357
357
358
358
AssertParse (
359
359
"""
360
+ infix operator <*<<< : MediumPrecedence, &
360
361
prefix operator ^^ : PrefixMagicOperatorProtocol
361
362
infix operator <*< : MediumPrecedence, InfixMagicOperatorProtocol
362
363
postfix operator ^^ : PostfixMagicOperatorProtocol
You can’t perform that action at this time.
0 commit comments