solidity/test/libsolidity/syntaxTests/functionTypes/call_value_on_non_constructor.sol

8 lines
269 B
Solidity
Raw Normal View History

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 8820: (155-167): Member "value" is only available for payable functions.