class B extends A {
constructor(msg:string) {
super(msg);
}
}
class A {
constructor(public msg:string) {
}
}
If the super class of B is defined after A you'll get a runtime error.
Just tested the above code in the typescript playground and I get the same error
If the super class of B is defined after A you'll get a runtime error.
Just tested the above code in the typescript playground and I get the same error