mirror of
https://github.com/tc39/test262.git
synced 2025-05-08 08:50:30 +02:00
27 lines
757 B
JavaScript
27 lines
757 B
JavaScript
// This file was procedurally generated from the following sources:
|
|
// - src/class-elements/grammar-privatemeth-duplicate-meth-nestedclassmeth.case
|
|
// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template
|
|
/*---
|
|
description: It's valid if a nested class shadows a private method (class expression)
|
|
esid: prod-ClassElement
|
|
features: [class-methods-private, class]
|
|
flags: [generated]
|
|
info: |
|
|
Static Semantics: Early Errors
|
|
|
|
ClassBody : ClassElementList
|
|
It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries.
|
|
|
|
---*/
|
|
|
|
|
|
var C = class {
|
|
constructor() {
|
|
class B {
|
|
#m() {}
|
|
}
|
|
}
|
|
|
|
#m() {}
|
|
};
|