TypeScript/tests/baselines/reference/superInConstructorParam1.errors.txt
2014-07-12 17:30:19 -07:00

16 lines
437 B
Plaintext

==== tests/cases/compiler/superInConstructorParam1.ts (2 errors) ====
class B {
public foo(): number {
return 0;
}
}
class C extends B {
constructor(a = super.foo()) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~
!!! 'super' cannot be referenced in constructor arguments.
}
~~~
!!! Constructors for derived classes must contain a 'super' call.
}