We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 745922f commit 2649d81Copy full SHA for 2649d81
Tests/SwiftParserTest/Types.swift
@@ -52,5 +52,11 @@ final class TypeTests: XCTestCase {
52
DiagnosticSpec(locationMarker: "DIAG_1", message: "Unexpected text 'class' found in closure capture signature"),
53
DiagnosticSpec(locationMarker: "DIAG_2", message: "Expected '}' to end closure"),
54
])
55
+
56
+ AssertParse("{[n#^DIAG^#`]in}",
57
+ { $0.parseClosureExpression() },
58
+ diagnostics: [
59
+ DiagnosticSpec(message: "Unexpected text '`' found in closure capture signature")
60
+ ])
61
}
62
0 commit comments