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

9 lines
226 B
Solidity

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