TypeScript/tests/cases/compiler/superPropertyElementNoUnusedLexicalThisCapture.ts
Wesley Wigham 64305edbce
Skip outer expressions when checking for super keyword in binder (#20164)
* Skip outter expressions when checking for super keyword in binder

* use TransformFlags to optimize and correct super call transforms

* Lint
2018-01-12 18:24:02 -08:00

17 lines
247 B
TypeScript

class A { x() {} }
class B extends A {
constructor() {
super();
}
foo() {
return () => {
super.x;
}
}
bar() {
return () => {
super["x"];
}
}
}