solidity/test/libsolidity/syntaxTests/revertStatement/error_used_elsewhere.sol

7 lines
147 B
Solidity
Raw Normal View History

2021-02-24 09:55:49 +00:00
error E();
function f() pure {
E();
}
// ----
// TypeError 7757: (35-38): Errors can only be used with revert statements: "revert MyError();".