TypeScript/tests/cases/conformance/es6/classDeclaration/superCallBeforeThisAccessing8.ts
Kanchalai Tanglertsampan 90c08c2201 Port PR#6860 lexically check calling super before this
Update baselines

add baselines

Update baseline

Port PR #6860 lexically check calling super before this
Check using "super" before "this" lexically instead of using the
NodeCheckFlags

Remove "type-checking" way of checking if super is used before this.
Instead check using whether super occurs before this syntactically

Refactor the code

Dive down to get super call

Address PR

Address PR about tests

Add a flag so we don't repeatedly finding super call

rename function

Move tests into correct location

Address PR: report error on super call instead of entire constructor node

remove marge mark
2016-02-11 14:05:20 -08:00

13 lines
219 B
TypeScript

class Base {
constructor(c) { }
}
class D extends Base {
private _t;
constructor() {
let x = {
k: super(undefined),
j: this._t, // no error
}
}
}