Closed
Description
The following snippet should emit a diagnostic instead of an assertion
export class B {
constructor(a: i32) {
super(x);
}
}
export function add(a: i32, b: i32): i32 {
new B(a);
return a + b;
}
I believe that the diagnostic should be something like:
'super' can only be referenced in a derived class.