mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Include the pragma explicitly, rename the file to have a _v1 suffix, and also add V2 counterparts where missing.
		
			
				
	
	
		
			14 lines
		
	
	
		
			234 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			234 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
pragma abicoder v2;
 | 
						|
contract C {
 | 
						|
	enum E {X, Y}
 | 
						|
	function f(E[] calldata arr) external {
 | 
						|
		arr[1];
 | 
						|
	}
 | 
						|
}
 | 
						|
// ====
 | 
						|
// EVMVersion: >=byzantium
 | 
						|
// compileViaYul: also
 | 
						|
// revertStrings: debug
 | 
						|
// ----
 | 
						|
// f(uint8[]): 0x20, 2, 3, 3 -> FAILURE
 |