Fix: Function types for getters should not have storage pointers.

This commit is contained in:
chriseth 2018-02-21 11:07:40 +01:00
parent 8ae6a76c58
commit 4da20bdf01

View File

@ -2206,7 +2206,10 @@ FunctionType::FunctionType(VariableDeclaration const& _varDecl):
if (auto arrayType = dynamic_cast<ArrayType const*>(member.type.get()))
if (!arrayType->isByteArray())
continue;
m_returnParameterTypes.push_back(member.type);
m_returnParameterTypes.push_back(ReferenceType::copyForLocationIfReference(
DataLocation::Memory,
member.type
));
m_returnParameterNames.push_back(member.name);
}
}