You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
241 B
13 lines
241 B
6 years ago
|
pragma solidity ^0.5.0;
|
||
8 years ago
|
|
||
5 years ago
|
contract Test {
|
||
8 years ago
|
|
||
6 years ago
|
function returnTuple() public returns (uint x, uint y) {
|
||
8 years ago
|
return (10, 20);
|
||
|
}
|
||
|
|
||
6 years ago
|
function a() public {
|
||
5 years ago
|
(uint _a, uint _b) = (10, 20);
|
||
|
(_a, _b) = returnTuple();
|
||
8 years ago
|
}
|
||
|
}
|