mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			565 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			565 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright 2017 Valerie Young.  All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
/*---
 | 
						|
description: Syntax error if the same private field defined twice
 | 
						|
esid: sec-class-definitions-static-semantics-early-errors
 | 
						|
features: [class, class-fields-private]
 | 
						|
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.
 | 
						|
---*/
 | 
						|
 | 
						|
 | 
						|
$DONOTEVALUATE();
 | 
						|
 | 
						|
var C = class {
 | 
						|
  #x;
 | 
						|
  #x;
 | 
						|
}
 |