2020-03-23 15:04:36 +00:00
|
|
|
contract C {
|
|
|
|
uint public i;
|
|
|
|
uint public k;
|
|
|
|
|
2020-06-23 12:14:24 +00:00
|
|
|
constructor(uint newI, uint newK) {
|
2020-03-23 15:04:36 +00:00
|
|
|
i = newI;
|
|
|
|
k = newK;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
|
|
|
// ----
|
|
|
|
// constructor(): 2, 0 ->
|
|
|
|
// i() -> 2
|
|
|
|
// k() -> 0
|