mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
513 B
TypeScript
21 lines
513 B
TypeScript
//// [tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments15_ES6.ts] ////
|
|
|
|
//// [emitArrowFunctionWhenUsingArguments15_ES6.ts]
|
|
function f() {
|
|
var arguments = "hello";
|
|
if (Math.random()) {
|
|
const arguments = 100;
|
|
return () => arguments;
|
|
}
|
|
}
|
|
|
|
//// [emitArrowFunctionWhenUsingArguments15_ES6.js]
|
|
"use strict";
|
|
function f() {
|
|
var arguments = "hello";
|
|
if (Math.random()) {
|
|
const arguments = 100;
|
|
return () => arguments;
|
|
}
|
|
}
|