TypeScript/tests/cases/compiler/overloadCallTest.ts
2014-07-12 17:30:19 -07:00

15 lines
260 B
TypeScript

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");
}
}