Commit c2be0bd
committed
Add test case for
Ensure that we emit the proper diagnostics for when the await and try
are flipped, but also await is incorrectly spelled `async`.
We're expecting two diagnostics, both of which have fix-its that do the
right thing. One will just replace the `async` with an `await`. The
other will move the text so that try comes first. Because `await` and
`async` are both have the same number of characters, both fix-its will
fix the issue correctly.async try foo()
1 parent 49bfcd2 commit c2be0bd
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
0 commit comments