Add crashing test

This commit is contained in:
Andrew Branch
2019-04-24 11:35:18 -07:00
parent d4ff58d53f
commit 48f038067e

View File

@@ -0,0 +1,5 @@
// @noImplicitAny: true
let foo = () => {}; // if you remove or change foo definition to not a function, bug disappears
let bar; // if you add type annotation here, bug disappears
while (1) // if you remove while, bug disappears
bar = ~foo(...bar); // if you remove unary or spread operator, bug disappears