TypeScript/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.errors.txt

10 lines
345 B
Plaintext
Raw Normal View History

2014-07-31 01:27:13 +02:00
==== tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts (2 errors) ====
2014-07-13 01:04:16 +02:00
class C {
foo(): string;
bar(x): any { }
2014-07-31 01:27:13 +02:00
~~~
!!! Function implementation name must be 'foo'.
2014-07-13 01:04:16 +02:00
foo(x): number;
2014-07-31 01:27:13 +02:00
~~~
!!! Function implementation is missing or not immediately following the declaration.
2014-07-13 01:04:16 +02:00
}