mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-29 18:53:58 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			804 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			804 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // This file was procedurally generated from the following sources:
 | |
| // - src/class-elements/grammar-privatemeth-duplicate-set-set.case
 | |
| // - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
 | |
| /*---
 | |
| description: It's a SyntaxError if a class contains multiple private setters with the same name (class expression)
 | |
| esid: prod-ClassElement
 | |
| features: [class-methods-private, class]
 | |
| flags: [generated]
 | |
| negative:
 | |
|   phase: parse
 | |
|   type: SyntaxError
 | |
| 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.
 | |
| 
 | |
| ---*/
 | |
| 
 | |
| 
 | |
| $DONOTEVALUATE();
 | |
| 
 | |
| var C = class {
 | |
|   set #m(_) {}
 | |
|   set #m(_) {}
 | |
| };
 |