solidity/test/libsolidity/syntaxTests/controlFlow/storageReturn/tuple_fine.sol

16 lines
335 B
Solidity
Raw Normal View History

contract C {
struct S { bool f; }
S s;
function f() internal view returns (S storage, uint) {
return (s,2);
}
function g() internal view returns (S storage c) {
uint a;
(c, a) = f();
}
function h() internal view returns (S storage, S storage) {
return (s,s);
}
}
// ----