mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
312 B
Solidity
10 lines
312 B
Solidity
// 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 view
|