2014-07-13 01:04:16 +02:00
|
|
|
//// [functionOverloads32.ts]
|
|
|
|
function foo(bar:string):string;
|
|
|
|
function foo(bar:number):number;
|
|
|
|
function foo(bar:any):any{ return bar }
|
|
|
|
var baz:number; var x = foo(baz);
|
|
|
|
|
|
|
|
|
|
|
|
//// [functionOverloads32.js]
|
2015-02-07 05:03:24 +01:00
|
|
|
function foo(bar) { return bar; }
|
2014-07-13 01:04:16 +02:00
|
|
|
var baz;
|
|
|
|
var x = foo(baz);
|