Skip to content

Commit f9ca2a2

Browse files
committed
Test mixture of throwing and nonthrowing interpolations
1 parent c2989f3 commit f9ca2a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/Parse/try.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,4 @@ _ = "a\()b" // expected-error {{interpolation can throw but is not marked with '
196196
// expected-note@-1 {{did you mean to use 'try'?}} {{5-5=try }}
197197
// expected-note@-2 {{did you mean to handle error as optional value?}} {{5-5=try? }}
198198
// expected-note@-3 {{did you mean to disable error propagation?}} {{5-5=try! }}
199+
_ = try "\() \(1)"

0 commit comments

Comments
 (0)