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

13 lines
350 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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;
~
!!! Type 'number' is not assignable to type 'void'.
}
}