solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/547_warn_about_address_members_on_non_this_contract_balance.sol

9 lines
260 B
Solidity
Raw Normal View History

contract C {
function f() view public {
C c;
c.balance;
}
}
// ----
2018-07-17 12:31:21 +00:00
// TypeError: (65-74): Member "balance" not found or not visible after argument-dependent lookup in contract C. Use "address(c).balance" to access this address member.