10 lines
345 B
Plaintext
10 lines
345 B
Plaintext
==== 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.
|
|
} |