solidity/test/libsolidity/semanticTests/errors/revert_conversion.sol
2021-03-30 21:15:46 +02:00

13 lines
237 B
Solidity

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