solidity/test/libsolidity/semanticTests/state_var_initialization.sol

13 lines
158 B
Solidity
Raw Normal View History

contract C {
uint public i = 1;
uint public k = 2;
2020-06-23 12:14:24 +00:00
constructor() {
i = i + i;
k = k - i;
}
}
// ----
// i() -> 2
// k() -> 0