13 lines
244 B
JavaScript
13 lines
244 B
JavaScript
|
//// [functionOverloads29.ts]
|
||
|
function foo(bar:string):string;
|
||
|
function foo(bar:number):number;
|
||
|
function foo(bar:any):any{ return bar }
|
||
|
var x = foo();
|
||
|
|
||
|
|
||
|
//// [functionOverloads29.js]
|
||
|
function foo(bar) {
|
||
|
return bar;
|
||
|
}
|
||
|
var x = foo();
|