solidity/test/libsolidity/syntaxTests/multiVariableDeclaration/multiVariableDeclarationComplex.sol
2022-04-01 23:41:18 -05:00

16 lines
920 B
Solidity

contract D {
struct S { uint a; uint b; }
}
contract C {
function f() internal pure {
(,,,D.S[10*2] storage x,) = g();
x;
}
function g() internal pure returns (uint, uint, uint, D.S[20] storage x, uint) { x = x; }
}
// ----
// Warning 6321: (176-180='uint'): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
// Warning 6321: (182-186='uint'): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
// Warning 6321: (188-192='uint'): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
// Warning 6321: (213-217='uint'): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.