Ensure private UID generation takes into account all referenced private names
This commit is contained in:
committed by
Nicolò Ribaudo
parent
3f7644823d
commit
ab6d74a9cc
@@ -0,0 +1,10 @@
|
||||
class A {
|
||||
#A = 1;
|
||||
static B = class B extends A {
|
||||
accessor a = 2;
|
||||
|
||||
getA() {
|
||||
return this.#A;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
class A {
|
||||
#A = 1;
|
||||
static B = class B extends A {
|
||||
#B = 2;
|
||||
|
||||
get a() {
|
||||
return this.#B;
|
||||
}
|
||||
|
||||
set a(v) {
|
||||
this.#B = v;
|
||||
}
|
||||
|
||||
getA() {
|
||||
return this.#A;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user