aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-24 19:44:49 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-16 19:12:43 +0800
commit2e72bd163a149183c119ca9664b98b0c5473da41 (patch)
treec21a611b03f2ba123b9b86604ee31558d9454df7 /libsolidity/ast
parenta0d171722a211720773aae0ded8a80991d44ba9d (diff)
downloaddexon-solidity-2e72bd163a149183c119ca9664b98b0c5473da41.tar.gz
dexon-solidity-2e72bd163a149183c119ca9664b98b0c5473da41.tar.zst
dexon-solidity-2e72bd163a149183c119ca9664b98b0c5473da41.zip
Allow structs as part of function interfaces.
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/Types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index 705d0f7f..3a93b74e 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -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