solidity/test/libsolidity/semanticTests/revertStrings/enum_v2.sol

13 lines
211 B
Solidity
Raw Normal View History

pragma abicoder v2;
2020-01-22 14:48:56 +00:00
contract C {
enum E {X, Y}
function f(E[] calldata arr) external {
arr[1];
}
}
// ====
// EVMVersion: >=byzantium
// revertStrings: debug
// ----
// f(uint8[]): 0x20, 2, 3, 3 -> FAILURE