Justin Ridgewell ecbf0dd53c
Fix super nested class bugs (#7691)
* Properly traverse nested class for supers

* Add object nested in class cases

* Add object nested object cases

* Test class properties

* Undo changes to lerna.json

* Add tests arournd prefix/postfix super increment

* tmp

* Use sets
2018-04-12 13:02:26 -04:00

23 lines
317 B
JavaScript

class Point {
getX() {
assert.equal(this.x, 3); // C
}
}
class ColorPoint extends Point {
constructor() {
super();
this.x = 2;
super.x = 3;
assert.equal(this.x, 3); // A
assert.equal(super.x, undefined); // B
}
m() {
this.getX();
}
}
const cp = new ColorPoint();
cp.m();