TypeScript/tests/baselines/reference/argumentsObjectIterator01_ES5.errors.txt
Daniel Rosenwasser 338bc0ef39 Added tests.
2015-05-29 14:59:19 -07:00

14 lines
No EOL
586 B
Text

tests/cases/compiler/argumentsObjectIterator01_ES5.ts(4,21): error TS2495: Type 'IArguments' is not an array type or a string type.
==== tests/cases/compiler/argumentsObjectIterator01_ES5.ts (1 errors) ====
function doubleAndReturnAsArray(x: number, y: number, z: number): [number, number, number] {
let result = [];
for (let arg of arguments) {
~~~~~~~~~
!!! error TS2495: Type 'IArguments' is not an array type or a string type.
result.push(arg + arg);
}
return <[any, any, any]>result;
}