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

14 lines
680 B
Text
Raw Normal View History

tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts(3,5): error TS2389: Function implementation name must be 'foo'.
tests/cases/compiler/classWithOverloadImplementationOfWrongName2.ts(4,5): error TS2391: Function implementation is missing or not immediately following the declaration.
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
~~~
!!! error TS2389: 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
~~~
!!! error TS2391: Function implementation is missing or not immediately following the declaration.
2014-07-13 01:04:16 +02:00
}