solidity/test/libsolidity/syntaxTests/revertStatement/error_used_elsewhere.sol
2021-03-30 21:15:46 +02:00

7 lines
147 B
Solidity

error E();
function f() pure {
E();
}
// ----
// TypeError 7757: (35-38): Errors can only be used with revert statements: "revert MyError();".