14 lines
240 B
JavaScript
14 lines
240 B
JavaScript
|
//// [functionWithDefaultParameterWithNoStatements11.ts]
|
||
|
var v: any[];
|
||
|
|
||
|
function foo(a = v[0]) { }
|
||
|
|
||
|
function bar(a = v[0]) {
|
||
|
}
|
||
|
|
||
|
//// [functionWithDefaultParameterWithNoStatements11.js]
|
||
|
var v;
|
||
|
function foo(a) { }
|
||
|
function bar(a) {
|
||
|
}
|