10 lines
556 B
Text
10 lines
556 B
Text
=== tests/cases/compiler/functionOverloads12.ts ===
|
|
function foo():string;
|
|
>foo : Symbol(foo, Decl(functionOverloads12.ts, 0, 0), Decl(functionOverloads12.ts, 0, 22), Decl(functionOverloads12.ts, 1, 22))
|
|
|
|
function foo():number;
|
|
>foo : Symbol(foo, Decl(functionOverloads12.ts, 0, 0), Decl(functionOverloads12.ts, 0, 22), Decl(functionOverloads12.ts, 1, 22))
|
|
|
|
function foo():any { if (true) return ""; else return 0;}
|
|
>foo : Symbol(foo, Decl(functionOverloads12.ts, 0, 0), Decl(functionOverloads12.ts, 0, 22), Decl(functionOverloads12.ts, 1, 22))
|
|
|