mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix data location of external reference parameters.
This commit is contained in:
parent
1f21136737
commit
c9ca083d14
@ -344,7 +344,7 @@ void ReferencesResolver::endVisit(VariableDeclaration const& _variable)
|
|||||||
"(remove the \"memory\" or \"storage\" keyword)."
|
"(remove the \"memory\" or \"storage\" keyword)."
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (varLoc == Location::Default)
|
if (varLoc == Location::Default || varLoc == Location::CallData)
|
||||||
typeLoc = DataLocation::CallData;
|
typeLoc = DataLocation::CallData;
|
||||||
else
|
else
|
||||||
typeLoc = varLoc == Location::Memory ? DataLocation::Memory : DataLocation::Storage;
|
typeLoc = varLoc == Location::Memory ? DataLocation::Memory : DataLocation::Storage;
|
||||||
|
Loading…
Reference in New Issue
Block a user