Skip to content

Commit 470a819

Browse files
authored
Merge pull request #1139 from ahoppen/ahoppen/fix-56
Fix build of SwiftSyntax using Swift 5.6
2 parents cb15ec6 + fb3fa81 commit 470a819

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/SwiftParserTest/Assertions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ func AssertParse<S: SyntaxProtocol>(
337337
) {
338338
AssertParse(
339339
markedSource,
340-
{ source in
340+
{ (source: String) -> S in
341341
var parser = Parser(source)
342342
return parse(&parser)
343343
},

Tests/SwiftParserTest/Parser+EntryTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class EntryTests: XCTestCase {
2020
}
2121

2222
func testTopLevelBufferParse() throws {
23-
AssertParse("func test() {}", { source in
23+
AssertParse("func test() {}", { (source: String) -> SourceFileSyntax in
2424
var source = source
2525
source.makeContiguousUTF8()
2626
return source.withUTF8 { Parser.parse(source: $0) }

0 commit comments

Comments
 (0)