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.
8 lines
264 B
Solidity
8 lines
264 B
Solidity
contract C {
|
|
// Tests that we don't get a wrong error about constructors
|
|
function f() public view returns (C) { return this; }
|
|
function g() public { this.f.value(); }
|
|
}
|
|
// ----
|
|
// TypeError: (155-167): Member "value" is only available for payable functions.
|