solidity/test/libsolidity/constructor_inheritance_init_order_3.sol

13 lines
193 B
Solidity
Raw Normal View History

contract A {
uint public x;
constructor(uint) {}
function f() public { x = 4; }
}
contract B is A {
constructor() A(f()) {}
}
// ====
// compileViaYul: also
// ----
// x() -> 4