Closed gregomni closed 3 months ago
@swift-ci Please test
Oops! That test didn't fail for me locally, but I see the problem.
@swift-ci Please test
By the way, the test didn’t fail locally for you because CI runs test case mutation which isn’t enabled by default. https://github.com/apple/swift-syntax/blob/main/CONTRIBUTING.md#test-case-mutation has a little more documentation about it.
@swift-ci Please test
For errors of the form
case .a, case .b:
instead of the expectedcase .a, .b:
, produce just a single initial unexpected token in the secondSwitchCaseItemSyntax
instead of a bad pattern and then a second separate full case.See https://github.com/apple/swift/pull/74071, which is essentially the same change made to the old parser.