2014-11-05 21:26:03 +01:00
|
|
|
tests/cases/compiler/superCallAssignResult.ts(8,9): error TS2322: Type 'number' is not assignable to type 'void'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
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;
|
|
|
|
~
|
2014-11-05 21:26:03 +01:00
|
|
|
!!! error TS2322: Type 'number' is not assignable to type 'void'.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
|
|
|
}
|