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

12 lines
203 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
2021-04-23 15:59:01 +00:00
// compileToEwasm: also
2021-01-28 11:56:22 +00:00
// ----
// f() -> FAILURE, hex"85208890", 2, 7