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) {
|
2014-08-16 00:49:09 +02:00
|
|
|
arguments = 10; /// This shouldnt be of type number and result in error.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|