grammar-privatename-no-initializer-with-method.js (691B)
1 // This file was procedurally generated from the following sources: 2 // - src/class-elements/grammar-privatename-no-initializer-with-method.case 3 // - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template 4 /*--- 5 description: SyntaxError (class declaration) 6 esid: prod-ClassElement 7 features: [class-fields-private, class] 8 flags: [generated] 9 info: | 10 ClassElement : 11 MethodDefinition 12 static MethodDefinition 13 FieldDefinition ; 14 ; 15 16 FieldDefinition : 17 ClassElementName Initializer _opt 18 19 ClassElementName : 20 PropertyName 21 PrivateName 22 23 PrivateName :: 24 # IdentifierName 25 26 ---*/ 27 28 29 class C { 30 #x 31 m() {} 32 } 33 34 reportCompare(0, 0);