https://github.com/tc39/proposal-private-fields-in-in Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> Co-Authored-By: Huáng Jùnliàng <jlhwung@gmail.com>
19 lines
200 B
JavaScript
19 lines
200 B
JavaScript
class Foo {
|
|
#foo = 1;
|
|
#bar = 1;
|
|
|
|
test() {
|
|
class Nested {
|
|
#bar = 2;
|
|
|
|
test() {
|
|
#foo in this;
|
|
#bar in this;
|
|
}
|
|
}
|
|
|
|
#foo in this;
|
|
#bar in this;
|
|
}
|
|
}
|