mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix compilation error
This commit is contained in:
parent
63210e5a68
commit
c4e8d3754d
@ -1934,7 +1934,7 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess)
|
||||
else if (member == "typehash")
|
||||
{
|
||||
Type const* arg = dynamic_cast<MagicType const&>(*_memberAccess.expression().annotation().type).typeArgument();
|
||||
solAssert(dynamic_cast<StructType const*>(arg), "typehash called on a non-struct type")
|
||||
solAssert(dynamic_cast<StructType const*>(arg), "typehash called on a non-struct type");
|
||||
StructDefinition const& struct_ = dynamic_cast<StructType const&>(*arg).structDefinition();
|
||||
m_context << struct_.typehash();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user