We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7303b4 commit 940d8c2Copy full SHA for 940d8c2
tests/cases/fourslash/unreachableCodeAfterEdit.ts
@@ -31,20 +31,14 @@
31
//// }
32
33
34
-// Initially, there should be no errors
35
verify.numberOfErrorsInCurrentFile(0);
36
37
-// Add a throw statement ABOVE the imports
38
goTo.marker("before");
39
edit.insert("throw new Error('foo');\n");
40
41
-// Now there should be unreachable code errors
42
verify.numberOfErrorsInCurrentFile(1);
43
44
-// Remove the throw statement
45
46
edit.deleteAtCaret("throw new Error('foo');\n".length);
47
48
-// After removing the throw, there should be no errors again
49
-// BUG: This will fail because reportedUnreachableNodes is not cleared properly
50
0 commit comments