Files
tsgo/testdata/baselines/reference/submodule/compiler/argumentsBindsToFunctionScopeArgumentList(alwaysstrict=true).js

15 lines
444 B
TypeScript

//// [tests/cases/compiler/argumentsBindsToFunctionScopeArgumentList.ts] ////
//// [argumentsBindsToFunctionScopeArgumentList.ts]
var arguments = 10;
function foo(a) {
arguments = 10; /// This shouldnt be of type number and result in error.
}
//// [argumentsBindsToFunctionScopeArgumentList.js]
"use strict";
var arguments = 10;
function foo(a) {
arguments = 10; /// This shouldnt be of type number and result in error.
}