solidity/test/libsolidity/ASTJSON/used_errors.sol

8 lines
116 B
Solidity
Raw Permalink Normal View History

2021-04-15 07:59:59 +00:00
error X();
2022-02-17 12:38:29 +00:00
function f() pure { revert X(); }
2021-04-15 07:59:59 +00:00
contract C {
error T();
function h() public { f(); }
2021-04-15 07:59:59 +00:00
}
// ----