==== tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts (2 errors) ==== class C { foo(): string; bar(x): any { } ~~~ !!! Function implementation name must be 'foo'. foo(x): number; ~~~ !!! Function implementation is missing or not immediately following the declaration. }