TypeScript/tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts

4 lines
120 B
TypeScript
Raw Normal View History

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