[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:
Djordje Mijovic
2020-12-04 16:32:56 +01:00
co-authored by Leonardo Daniel Kirchner
parent 2c13a13164
commit 2839a1b0bf
2 changed files with 48 additions and 0 deletions
@@ -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