[Sol2Yul] Adding support for constructor with parameters

This commit is contained in:
Djordje Mijovic
2020-03-27 01:19:11 +01:00
parent 4a7d2e590d
commit 89d5ecdd24
2 changed files with 35 additions and 3 deletions
@@ -0,0 +1,15 @@
contract C {
uint public i;
uint public k;
constructor(uint newI, uint newK) public {
i = newI;
k = newK;
}
}
// ====
// compileViaYul: also
// ----
// constructor(): 2, 0 ->
// i() -> 2
// k() -> 0