solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/297_library_functions_do_not_have_value.sol
Mathias Baumann 093b9ced97 Make sure "value" error hint is only displayed in the right context
Before, the hint would be shown for any "value" member, even a user-specified one.
2019-02-18 16:29:57 +01:00

9 lines
193 B
Solidity

library L { function l() public {} }
contract test {
function f() public {
L.l.value;
}
}
// ----
// TypeError: (87-96): Member "value" is only available for payable functions.