solidity/test/libsolidity/semanticTests/various/inline_member_init_inheritence.sol
2023-05-11 10:56:55 -05:00

24 lines
367 B
Solidity

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