mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
444 B
TypeScript
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.
|
|
}
|