mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Add crashing test
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user