mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
2839a1b0bf
Co-authored-by: Leonardo <leo@ethereum.org> Co-authored-by: Daniel Kirchner <daniel@ekpyron.org>
13 lines
193 B
Solidity
13 lines
193 B
Solidity
contract A {
|
|
uint public x;
|
|
constructor(uint) {}
|
|
function f() public { x = 4; }
|
|
}
|
|
contract B is A {
|
|
constructor() A(f()) {}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// x() -> 4
|