mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
367 B
TypeScript
17 lines
367 B
TypeScript
//// [tests/cases/compiler/functionWithDefaultParameterWithNoStatements13.ts] ////
|
|
|
|
//// [functionWithDefaultParameterWithNoStatements13.ts]
|
|
var v: any[];
|
|
|
|
function foo(a = [1 + 1]) { }
|
|
|
|
function bar(a = [1 + 1]) {
|
|
}
|
|
|
|
//// [functionWithDefaultParameterWithNoStatements13.js]
|
|
"use strict";
|
|
var v;
|
|
function foo(a = [1 + 1]) { }
|
|
function bar(a = [1 + 1]) {
|
|
}
|