solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/069_base_class_state_variable_accessor.sol

10 lines
317 B
Solidity
Raw Normal View History

// 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 2018: (158-226): Function state mutability can be restricted to view