TypeScript/tests/baselines/reference/argumentsBindsToFunctionScopeArgumentList.errors.txt

8 lines
356 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts (1 errors) ====
var arguments = 10;
function foo(a) {
arguments = 10; /// This shouldnt be of type number and result in error.
~~~~~~~~~
!!! Type 'number' is not assignable to type 'IArguments':
!!! Property 'length' is missing in type 'Number'.
}