solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/098_access_to_default_state_variable_visibility.sol

9 lines
194 B
Solidity
Raw Normal View History

contract c {
uint a;
}
contract d {
function g() public { c(0).a(); }
}
// ----
// TypeError: (66-72): Member "a" not found or not visible after argument-dependent lookup in contract c.