TypeScript/tests/cases/compiler/requiredInitializedParameter1.ts
Jason Freeman 628d63cf75 Add tests
2015-07-24 14:59:59 -07:00

19 lines
264 B
TypeScript

function f1(a, b = 0, c) { }
function f2(a, b = 0, c = 0) { }
function f3(a, b = 0, c?) { }
function f4(a, b = 0, ...c) { }
f1(0, 1, 2);
f2(0, 1, 2);
f3(0, 1, 2);
f4(0, 1, 2);
f1(0, 1);
f2(0, 1);
f3(0, 1);
f4(0, 1);
f1(0);
f2(0);
f3(0);
f4(0);