TypeScript/tests/baselines/reference/overloadCallTest.js
2015-12-08 17:51:10 -08:00

29 lines
528 B
TypeScript

//// [overloadCallTest.ts]
class foo {
constructor() {
function bar(): string;
function bar(s:string);
function bar(foo?: string) { return "foo" };
var test = bar("test");
var goo = bar();
goo = bar("test");
}
}
//// [overloadCallTest.js]
var foo = (function () {
function foo() {
function bar(foo) { return "foo"; }
;
var test = bar("test");
var goo = bar();
goo = bar("test");
}
return foo;
}());