File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -99,9 +99,9 @@ func testThrowingAndAsync() async throws {
99
99
100
100
// Errors
101
101
_ = 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! }}
105
105
_ = try throwingAndAsync ( ) // expected-error{{call is 'async' but is not marked with 'await'}}{{11-11=await }}
106
106
}
107
107
You can’t perform that action at this time.
0 commit comments