20 lines
No EOL
872 B
Text
20 lines
No EOL
872 B
Text
tests/cases/conformance/classes/constructorDeclarations/superCalls/superCallInConstructorWithNoBaseType.ts(3,9): error TS2335: 'super' can only be referenced in a derived class.
|
|
tests/cases/conformance/classes/constructorDeclarations/superCalls/superCallInConstructorWithNoBaseType.ts(9,9): error TS2335: 'super' can only be referenced in a derived class.
|
|
|
|
|
|
==== tests/cases/conformance/classes/constructorDeclarations/superCalls/superCallInConstructorWithNoBaseType.ts (2 errors) ====
|
|
class C {
|
|
constructor() {
|
|
super(); // error
|
|
~~~~~
|
|
!!! error TS2335: 'super' can only be referenced in a derived class.
|
|
}
|
|
}
|
|
|
|
class D<T> {
|
|
public constructor(public x: T) {
|
|
super(); // error
|
|
~~~~~
|
|
!!! error TS2335: 'super' can only be referenced in a derived class.
|
|
}
|
|
} |