mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
093b9ced97
Before, the hint would be shown for any "value" member, even a user-specified one.
7 lines
219 B
Solidity
7 lines
219 B
Solidity
contract receiver { function nopay() public {} }
|
|
contract test {
|
|
function f() public { (new receiver()).nopay.value(10)(); }
|
|
}
|
|
// ----
|
|
// TypeError: (91-119): Member "value" is only available for payable functions.
|