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

64 lines
4 KiB
Plaintext
Raw Normal View History

tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts(8,8): error TS1110: Type expected.
2015-06-20 00:45:18 +02:00
tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts(8,8): error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts(10,9): error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts(13,9): error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts(17,9): error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts(20,15): error TS1110: Type expected.
2015-06-20 00:45:18 +02:00
tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts(20,15): error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts(22,9): error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts(25,9): error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts(29,9): error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
==== tests/cases/conformance/classes/constructorDeclarations/superCalls/derivedClassSuperCallsInNonConstructorMembers.ts (10 errors) ====
2014-07-13 01:04:16 +02:00
// error to use super calls outside a constructor
class Base {
x: string;
}
class Derived extends Base {
a: super();
~~~~~
!!! error TS1110: Type expected.
2014-07-13 01:04:16 +02:00
~~~~~
2015-06-20 00:45:18 +02:00
!!! error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
2014-07-13 01:04:16 +02:00
b() {
super();
~~~~~
2015-06-20 00:45:18 +02:00
!!! error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
2014-07-13 01:04:16 +02:00
}
get C() {
super();
~~~~~
2015-06-20 00:45:18 +02:00
!!! error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
2014-07-13 01:04:16 +02:00
return 1;
}
set C(v) {
super();
~~~~~
2015-06-20 00:45:18 +02:00
!!! error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
2014-07-13 01:04:16 +02:00
}
static a: super();
~~~~~
!!! error TS1110: Type expected.
2014-07-13 01:04:16 +02:00
~~~~~
2015-06-20 00:45:18 +02:00
!!! error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
2014-07-13 01:04:16 +02:00
static b() {
super();
~~~~~
2015-06-20 00:45:18 +02:00
!!! error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
2014-07-13 01:04:16 +02:00
}
static get C() {
super();
~~~~~
2015-06-20 00:45:18 +02:00
!!! error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
2014-07-13 01:04:16 +02:00
return 1;
}
static set C(v) {
super();
~~~~~
2015-06-20 00:45:18 +02:00
!!! error TS2337: Super calls are not permitted outside constructors or in nested functions inside constructors.
2014-07-13 01:04:16 +02:00
}
}