aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/069_base_class_state_variable_accessor.sol
blob: 8f2c6438034575f3e7d3bd1c50e211aa730cb301 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                            
// test for issue #1126 https://github.com/ethereum/cpp-ethereum/issues/1126
contract Parent {
    uint256 public m_aMember;
}
contract Child is Parent {
    function foo() public returns (uint256) { return Parent.m_aMember; }
}
// ----
// Warning: (158-226): Function state mutability can be restricted to pure