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

16 lines
437 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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.
}