Skip to content

Commit 48f0380

Browse files
committed
Add crashing test
1 parent d4ff58d commit 48f0380

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// @noImplicitAny: true
2+
let foo = () => {}; // if you remove or change foo definition to not a function, bug disappears
3+
let bar; // if you add type annotation here, bug disappears
4+
while (1) // if you remove while, bug disappears
5+
bar = ~foo(...bar); // if you remove unary or spread operator, bug disappears

0 commit comments

Comments
 (0)