Skip to content

Commit 16612b0

Browse files
committed
Add test for missing expression in string interpolation
1 parent 80baae1 commit 16612b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/Parse/trailing-comma.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ struct S {
6060
// String Literal Interpolation
6161

6262
"\(1,)"
63+
"\(1, f:)" // expected-error {{expected expression in list of expressions}}
6364
6465
// Availability Spec List
6566

0 commit comments

Comments
 (0)