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

24 lines
999 B
Plaintext
Raw Normal View History

tests/cases/compiler/functionOverloadsOutOfOrder.ts(6,13): error TS2391: Function implementation is missing or not immediately following the declaration.
tests/cases/compiler/functionOverloadsOutOfOrder.ts(14,13): error TS2391: Function implementation is missing or not immediately following the declaration.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/functionOverloadsOutOfOrder.ts (2 errors) ====
class d {
private foo(n: number): string;
private foo(ns: any) {
return ns.toString();
}
private foo(s: string): string;
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
}
class e {
private foo(ns: any) {
return ns.toString();
}
private foo(s: string): string;
private foo(n: number): string;
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
}