25 lines
No EOL
1,013 B
Text
25 lines
No EOL
1,013 B
Text
error TS2318: Cannot find global type 'Array'.
|
|
error TS2318: Cannot find global type 'Boolean'.
|
|
error TS2318: Cannot find global type 'Function'.
|
|
error TS2318: Cannot find global type 'IArguments'.
|
|
error TS2318: Cannot find global type 'Number'.
|
|
error TS2318: Cannot find global type 'Object'.
|
|
error TS2318: Cannot find global type 'RegExp'.
|
|
error TS2318: Cannot find global type 'String'.
|
|
|
|
|
|
!!! error TS2318: Cannot find global type 'Array'.
|
|
!!! error TS2318: Cannot find global type 'Boolean'.
|
|
!!! error TS2318: Cannot find global type 'Function'.
|
|
!!! error TS2318: Cannot find global type 'IArguments'.
|
|
!!! error TS2318: Cannot find global type 'Number'.
|
|
!!! error TS2318: Cannot find global type 'Object'.
|
|
!!! error TS2318: Cannot find global type 'RegExp'.
|
|
!!! error TS2318: Cannot find global type 'String'.
|
|
==== tests/cases/compiler/noCrashOnNoLib.ts (0 errors) ====
|
|
export function f() {
|
|
let e: {}[];
|
|
while (true) {
|
|
e = [...(e || [])];
|
|
}
|
|
} |