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

11 lines
179 B
Solidity
Raw Normal View History

2021-01-28 11:56:22 +00:00
error E(uint a, uint b);
contract C {
function f() public pure {
revert E(2, 7);
}
}
// ====
// compileViaYul: also
// ----
// f() -> FAILURE, hex"85208890", 2, 7