Skip to content

Commit 45c81c2

Browse files
committed
Updating tests to verify fix-it placement
Updating the test to verify that we're putting the try fix-its in the right place.
1 parent 8e63412 commit 45c81c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/expr/unary/async_await.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ func testThrowingAndAsync() async throws {
9999

100100
// Errors
101101
_ = await throwingAndAsync() // expected-error{{call can throw but is not marked with 'try'}}
102-
// expected-note@-1{{did you mean to use 'try'?}}
103-
// expected-note@-2{{did you mean to handle error as optional value?}}
104-
// expected-note@-3{{did you mean to disable error propagation?}}
102+
// expected-note@-1{{did you mean to use 'try'?}}{{7-7=try }}
103+
// expected-note@-2{{did you mean to handle error as optional value?}}{{7-7=try? }}
104+
// expected-note@-3{{did you mean to disable error propagation?}}{{7-7=try! }}
105105
_ = try throwingAndAsync() // expected-error{{call is 'async' but is not marked with 'await'}}{{11-11=await }}
106106
}
107107

0 commit comments

Comments
 (0)