7 lines
No EOL
326 B
Text
7 lines
No EOL
326 B
Text
==== tests/cases/compiler/functionOverloads20.ts (1 errors) ====
|
|
function foo(bar:{a:number;}): number;
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! Overload signature is not compatible with function implementation.
|
|
function foo(bar:{a:string;}): string;
|
|
function foo(bar:{a:any;}): string {return ""}
|
|
|