Fix compilation error

This commit is contained in:
Anton Bukov 2023-05-09 12:34:38 +02:00
parent 63210e5a68
commit c4e8d3754d

View File

@ -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();
}