4 lines
135 B
TypeScript
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);
|