mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Make sure autoArrayType is unique, even if no lib is available (#20344)
* Make sure autoArrayType is unique, even if no lib is available * fix typo
This commit is contained in:
8
tests/cases/compiler/noCrashOnNoLib.ts
Normal file
8
tests/cases/compiler/noCrashOnNoLib.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// @noLib: true
|
||||
|
||||
export function f() {
|
||||
let e: {}[];
|
||||
while (true) {
|
||||
e = [...(e || [])];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user