solidity/test/libsolidity/semanticTests/constructor/base_constructor_arguments.sol
2020-07-07 12:16:18 +02:00

27 lines
335 B
Solidity

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