Skip to content

Commit 9893efe

Browse files
CodaFijpsim
authored andcommitted
Add a Test Case for swiftlang#676
This was resolved by swiftlang#727 rdar://99430613
1 parent 238b2e0 commit 9893efe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/SwiftParserTest/Types.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,11 @@ final class TypeTests: XCTestCase {
5252
DiagnosticSpec(locationMarker: "DIAG_1", message: "Unexpected text 'class' found in closure capture signature"),
5353
DiagnosticSpec(locationMarker: "DIAG_2", message: "Expected '}' to end closure"),
5454
])
55+
56+
AssertParse("{[n#^DIAG^#`]in}",
57+
{ $0.parseClosureExpression() },
58+
diagnostics: [
59+
DiagnosticSpec(message: "Unexpected text '`' found in closure capture signature")
60+
])
5561
}
5662
}

0 commit comments

Comments
 (0)