solidity/test/libsolidity/syntaxTests/immutable/ctor_initialization_tuple.sol
2020-04-02 13:52:27 +02:00

14 lines
220 B
Solidity

contract C {
uint immutable x;
uint immutable y;
constructor() public {
(x, y) = f();
}
function f() internal pure returns(uint _x, uint _y) {
_x = 3;
_y = 4;
}
}
// ----