TypeScript/tests/baselines/reference/argumentsBindsToFunctionScopeArgumentList.js

12 lines
348 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [argumentsBindsToFunctionScopeArgumentList.ts]
var arguments = 10;
function foo(a) {
arguments = 10; /// This shouldnt be of type number and result in error.
}
//// [argumentsBindsToFunctionScopeArgumentList.js]
var arguments = 10;
function foo(a) {
arguments = 10; /// This shouldnt be of type number and result in error.
2014-07-13 01:04:16 +02:00
}