solidity/test/libsolidity/syntaxTests/functionCalls/calloptions_on_internal_function.sol
2020-01-23 21:20:01 +01:00

9 lines
215 B
Solidity

contract D {}
contract C {
function foo(int a) pure internal {
foo{gas: 5};
}
}
// ----
// TypeError: (75-86): Function call options can only be set on external function calls or contract creations.