mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Allow structs as part of function interfaces.
This commit is contained in:
committed by
Alex Beregszaszi
parent
a0d171722a
commit
2e72bd163a
@@ -1770,7 +1770,7 @@ TypePointer StructType::interfaceType(bool _inLibrary) const
|
||||
if (_inLibrary && location() == DataLocation::Storage)
|
||||
return shared_from_this();
|
||||
else
|
||||
return TypePointer();
|
||||
return copyForLocation(DataLocation::Memory, true);
|
||||
}
|
||||
|
||||
TypePointer StructType::copyForLocation(DataLocation _location, bool _isPointer) const
|
||||
|
||||
Reference in New Issue
Block a user