solidity/test/libsolidity/syntaxTests/errors/usage_standalone.sol
2021-02-11 14:18:04 +01:00

7 lines
146 B
Solidity

error E();
function f() pure {
E();
}
// ----
// TypeError 7757: (35-38): Errors can only be created directly inside require or revert calls.