TypeScript/tests/baselines/reference/superCallAssignResult.errors.txt
2014-09-11 16:11:08 -07:00

13 lines
364 B
Plaintext

==== tests/cases/compiler/superCallAssignResult.ts (1 errors) ====
class E {
constructor(arg: any) { }
}
class H extends E {
constructor() {
var x = super(5); // Should be of type void, not E.
x = 5;
~
!!! error TS2323: Type 'number' is not assignable to type 'void'.
}
}