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

7 lines
150 B
Solidity

error E();
function f() pure {
revert({error: E()});
}
// ----
// TypeError 1886: (35-55): Named arguments cannot be used for this function call.