solidity/test/libsolidity/semanticTests/state_var_initialization.sol
2020-07-07 12:16:18 +02:00

15 lines
189 B
Solidity

contract C {
uint public i = 1;
uint public k = 2;
constructor() {
i = i + i;
k = k - i;
}
}
// ====
// compileViaYul: also
// ----
// i() -> 2
// k() -> 0