Skip to content

Commit fb1163f

Browse files
kimdvCippoX
authored andcommitted
Add testcase for #1472
1 parent 59aceb2 commit fb1163f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Tests/SwiftSyntaxBuilderTest/ClosureExprTests.swift

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,23 @@ final class ClosureExprTests: XCTestCase {
5757
"""
5858
)
5959
}
60+
61+
func testMultiTrailingClosure() {
62+
let buildable = ExprSyntax(
63+
"""
64+
foo { _ in
65+
}anotherClosure: { _ in
66+
}
67+
"""
68+
)
69+
70+
assertBuildResult(
71+
buildable,
72+
"""
73+
foo { _ in
74+
} anotherClosure: { _ in
75+
}
76+
"""
77+
)
78+
}
6079
}

0 commit comments

Comments
 (0)