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 6cd32e4 commit 0ab0498Copy full SHA for 0ab0498
Sources/SwiftParser/Expressions.swift
@@ -1991,7 +1991,6 @@ extension Parser.Lookahead {
1991
mutating func consumeEffectsSpecifiers() {
1992
var loopProgress = LoopProgressCondition()
1993
while self.currentToken.isEffectsSpecifier
1994
- && !self.currentToken.isAtStartOfLine
1995
&& loopProgress.evaluate(currentToken) {
1996
self.consumeAnyToken()
1997
}
Tests/SwiftParserTest/Types.swift
@@ -32,4 +32,12 @@ final class TypeTests: XCTestCase {
32
DiagnosticSpec(message: "Unexpected text '..' found in function type")
33
])
34
35
+
36
+ func testClosureSignatures() throws {
37
+ AssertParse("""
38
+ { ()
39
+ throws -> Void in }
40
+ """,
41
+ { $0.parseClosureExpression() })
42
+ }
43
0 commit comments