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

25 lines
318 B
Solidity

contract BaseBase {
uint256 m_a;
constructor(uint256 a) public {
m_a = a;
}
}
contract Base is BaseBase(7) {
constructor() public {
m_a *= m_a;
}
}
contract Derived is Base {
function getA() public returns (uint256 r) {
return m_a;
}
}
// ----
// getA() -> 49