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

7 lines
185 B
Solidity

error E1();
function f() pure {
revert(E1{gas: 10}());
}
// ----
// TypeError 2193: (43-54): Function call options can only be set on external function calls or contract creations.