solidity/test/libsolidity/semanticTests/errors/revert_conversion.sol

13 lines
237 B
Solidity
Raw Normal View History

2021-01-28 11:56:22 +00:00
error E(string a, uint[] b);
contract C {
uint[] x;
function f() public {
x.push(7);
revert E("abc", x);
}
}
// ====
// compileViaYul: also
// ----
// f() -> FAILURE, hex"59e4d4df", 0x40, 0x80, 3, "abc", 1, 7