solidity/test/libsolidity/syntaxTests/functionTypes/error_deprecate_gas_function.sol
2020-06-22 18:56:32 +02:00

9 lines
220 B
Solidity

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