TypeScript/tests/baselines/reference/memberFunctionOverloadMixingStaticAndInstance.errors.txt
2014-07-31 11:06:42 -07:00

36 lines
1.1 KiB
Plaintext

==== tests/cases/conformance/classes/propertyMemberDeclarations/memberFunctionDeclarations/memberFunctionOverloadMixingStaticAndInstance.ts (8 errors) ====
class C {
foo();
static foo(); // error
~~~
!!! Function implementation is missing or not immediately following the declaration.
~~~
!!! Function overload must not be static.
}
class D {
static foo();
foo(); // error
~~~
!!! Function implementation is missing or not immediately following the declaration.
~~~
!!! Function overload must be static.
}
class E<T> {
foo(x: T);
static foo(x: number); // error
~~~
!!! Function implementation is missing or not immediately following the declaration.
~~~
!!! Function overload must not be static.
}
class F<T> {
static foo(x: number);
foo(x: T); // error
~~~
!!! Function implementation is missing or not immediately following the declaration.
~~~
!!! Function overload must be static.
}