2014-07-13 01:04:16 +02:00
|
|
|
//// [innerOverloads.ts]
|
|
|
|
|
|
|
|
function outer() {
|
|
|
|
function inner(x:number); // should work
|
|
|
|
function inner(x:string);
|
|
|
|
function inner(a:any) { return a; }
|
|
|
|
|
|
|
|
return inner(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
var x = outer(); // should work
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// [innerOverloads.js]
|
|
|
|
function outer() {
|
2015-02-07 05:03:24 +01:00
|
|
|
function inner(a) { return a; }
|
2014-07-13 01:04:16 +02:00
|
|
|
return inner(0);
|
|
|
|
}
|
2014-08-15 22:18:54 +02:00
|
|
|
var x = outer(); // should work
|