mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 13:44:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			601 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			601 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// This file was procedurally generated from the following sources:
 | 
						|
// - src/declarations/class.case
 | 
						|
// - src/declarations/redeclare/block-attempt-to-redeclare-function-declaration.template
 | 
						|
/*---
 | 
						|
description: redeclaration with ClassDeclaration (FunctionDeclaration in BlockStatement)
 | 
						|
esid: sec-block-static-semantics-early-errors
 | 
						|
flags: [generated]
 | 
						|
negative:
 | 
						|
  phase: parse
 | 
						|
  type: SyntaxError
 | 
						|
info: |
 | 
						|
    Block : { StatementList }
 | 
						|
 | 
						|
    It is a Syntax Error if the LexicallyDeclaredNames of StatementList contains
 | 
						|
    any duplicate entries.
 | 
						|
 | 
						|
---*/
 | 
						|
 | 
						|
 | 
						|
$DONOTEVALUATE();
 | 
						|
 | 
						|
{ function f() {} class f {} }
 |