mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[Sol->Yul] Documenting difference in initialization order in case of inheritance.
Co-authored-by: Leonardo <leo@ethereum.org> Co-authored-by: Daniel Kirchner <daniel@ekpyron.org>
This commit is contained in:
co-authored by
Leonardo
Daniel Kirchner
parent
2c13a13164
commit
2839a1b0bf
@@ -0,0 +1,12 @@
|
||||
contract A {
|
||||
uint public x;
|
||||
constructor(uint) {}
|
||||
function f() public { x = 4; }
|
||||
}
|
||||
contract B is A {
|
||||
constructor() A(f()) {}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// x() -> 4
|
||||
Reference in New Issue
Block a user