TypeScript/tests/cases/compiler/functionWithDefaultParameterWithNoStatements14.ts

6 lines
82 B
TypeScript

var v: any[];
function foo(a = v[1 + 1]) { }
function bar(a = v[1 + 1]) {
}