solidity/test/libsolidity/syntaxTests/errors/named_error.sol
2021-02-01 18:26:31 +01:00

6 lines
70 B
Solidity

error E(uint a);
function f() pure {
revert(E({a: 2}));
}
// ----