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

29 lines
797 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/superCallOutsideConstructor.ts (3 errors) ====
class C {
foo() { }
}
class D extends C {
x = super();
~~~~~
!!! Super calls are not permitted outside constructors or in nested functions inside constructors
constructor() {
super();
var y = () => {
super();
~~~~~
!!! Super calls are not permitted outside constructors or in nested functions inside constructors
}
var y2 = function() {
super();
~~~~~
!!! Super calls are not permitted outside constructors or in nested functions inside constructors
}
}
}
var d = new D();