mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add tests for multi variable declaration statement.
This commit is contained in:
committed by
Alex Beregszaszi
parent
67d208d144
commit
c781baf733
+11
@@ -0,0 +1,11 @@
|
||||
contract D {
|
||||
struct S { uint a; uint b; }
|
||||
}
|
||||
contract C {
|
||||
function f() internal returns (uint, uint, uint, D.S[20] storage, uint) {
|
||||
(,,,D.S[10*2] storage x,) = f();
|
||||
x;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (110-117): This variable is of storage pointer type and might be returned without assignment. This can cause storage corruption. Assign the variable (potentially from itself) to remove this warning.
|
||||
Reference in New Issue
Block a user