diff --git a/tests/cases/compiler/noImplicitAnyLoopCrash.ts b/tests/cases/compiler/noImplicitAnyLoopCrash.ts new file mode 100644 index 0000000000000..d43802765065e --- /dev/null +++ b/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 \ No newline at end of file