solidity/test/libsolidity/syntaxTests/functionTypes/error_deprecate_gas_function.sol
2020-04-28 16:03:52 +05:30

9 lines
215 B
Solidity

contract C {
function (uint) external payable returns (uint) x;
function f() public {
x.gas(2)(1);
}
}
// ----
// TypeError: (102-107): Using ".gas(...)" is deprecated. Use "{gas: ...}" instead.