Skip to content

Commit

Permalink
Add crashing test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbranch committed Apr 24, 2019
1 parent d4ff58d commit 48f0380
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/cases/compiler/noImplicitAnyLoopCrash.ts
@@ -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

0 comments on commit 48f0380

Please sign in to comment.