16 lines
514 B
Text
16 lines
514 B
Text
|
tests/cases/compiler/superCallFromClassThatHasNoBaseType1.ts(9,21): error TS2335: 'super' can only be referenced in a derived class.
|
||
|
|
||
|
|
||
|
==== tests/cases/compiler/superCallFromClassThatHasNoBaseType1.ts (1 errors) ====
|
||
|
|
||
|
class A {
|
||
|
constructor(private map: (value: number) => string) {
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class B {
|
||
|
constructor() { super(value => String(value)); }
|
||
|
~~~~~
|
||
|
!!! error TS2335: 'super' can only be referenced in a derived class.
|
||
|
}
|