2014-11-05 21:26:03 +01:00
|
|
|
tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts(3,5): error TS2322: Type 'number' is not assignable to type 'IArguments'.
|
2014-09-12 22:35:07 +02:00
|
|
|
Property 'length' is missing in type 'Number'.
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
~~~~~~~~~
|
2014-11-05 21:26:03 +01:00
|
|
|
!!! error TS2322: Type 'number' is not assignable to type 'IArguments'.
|
|
|
|
!!! error TS2322: Property 'length' is missing in type 'Number'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|