10 lines
174 B
TypeScript
10 lines
174 B
TypeScript
|
class E {
|
||
|
constructor(arg: any) { }
|
||
|
}
|
||
|
|
||
|
class H extends E {
|
||
|
constructor() {
|
||
|
var x = super(5); // Should be of type void, not E.
|
||
|
x = 5;
|
||
|
}
|
||
|
}
|