TypeScript/tests/cases/compiler/overloadCallTest.ts

15 lines
260 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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");
}
}