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

12 lines
204 B
TypeScript

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