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

4 lines
135 B
TypeScript

function foo(bar: string): string;
function foo(bar: number): number;
function foo(bar: any): any { return bar };
var x = foo(true);