mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
Add crashing test
This commit is contained in:
5
tests/cases/compiler/noImplicitAnyLoopCrash.ts
Normal file
5
tests/cases/compiler/noImplicitAnyLoopCrash.ts
Normal 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
|
||||
Reference in New Issue
Block a user