solidity/test/libsolidity/semanticTests/various/inline_member_init_inheritence.sol
2020-03-19 14:42:25 +01:00

25 lines
382 B
Solidity

contract Base {
constructor() public {}
uint256 m_base = 5;
function getBMember() public returns (uint256 i) {
return m_base;
}
}
contract Derived is Base {
constructor() public {}
uint256 m_derived = 6;
function getDMember() public returns (uint256 i) {
return m_derived;
}
}
// ----
// getBMember() -> 5
// getDMember() -> 6