18 lines
No EOL
591 B
Text
18 lines
No EOL
591 B
Text
tests/cases/compiler/argumentsObjectIterator02_ES5.ts(3,26): error TS2304: Cannot find name 'Symbol'.
|
|
|
|
|
|
==== tests/cases/compiler/argumentsObjectIterator02_ES5.ts (1 errors) ====
|
|
|
|
function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] {
|
|
let blah = arguments[Symbol.iterator];
|
|
~~~~~~
|
|
!!! error TS2304: Cannot find name 'Symbol'.
|
|
|
|
let result = [];
|
|
for (let arg of blah()) {
|
|
result.push(arg + arg);
|
|
}
|
|
return <[any, any, any]>result;
|
|
}
|
|
|
|
|