mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			307 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			307 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
pragma abicoder v1;
 | 
						|
contract C {
 | 
						|
	enum E {X, Y}
 | 
						|
	function f(E[] calldata arr) external {
 | 
						|
		arr[1];
 | 
						|
	}
 | 
						|
}
 | 
						|
// ====
 | 
						|
// EVMVersion: >=byzantium
 | 
						|
// revertStrings: debug
 | 
						|
// ABIEncoderV1Only: true
 | 
						|
// compileViaYul: false
 | 
						|
// ----
 | 
						|
// f(uint8[]): 0x20, 2, 3, 3 -> FAILURE, hex"08c379a0", 0x20, 17, "Enum out of range"
 |