mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
310 B
Solidity
9 lines
310 B
Solidity
contract C {
|
|
function (uint) external returns (uint) x;
|
|
function f() public {
|
|
x.value(2)();
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (94-101): Member "value" not found or not visible after argument-dependent lookup in function (uint256) external returns (uint256) - did you forget the "payable" modifier?
|