2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/classWithOverloadImplementationOfWrongName.ts(4,5): error TS2389: Function implementation name must be 'foo'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/classWithOverloadImplementationOfWrongName.ts (1 errors) ====
|
|
|
|
class C {
|
|
|
|
foo(): string;
|
|
|
|
foo(x): number;
|
|
|
|
bar(x): any { }
|
2014-07-31 01:27:13 +02:00
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2389: Function implementation name must be 'foo'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|