* Skip outter expressions when checking for super keyword in binder * use TransformFlags to optimize and correct super call transforms * Lint
20 lines
256 B
TypeScript
20 lines
256 B
TypeScript
class Foo {
|
|
bar(): void {}
|
|
}
|
|
|
|
class Bar extends Foo {
|
|
x: Number;
|
|
|
|
constructor() {
|
|
super();
|
|
this.x = 2;
|
|
}
|
|
|
|
bar() {
|
|
super.bar();
|
|
(super.bar as any)();
|
|
}
|
|
}
|
|
|
|
let b = new Bar();
|
|
b.bar() |