Update libsolidity/ast/Types.cpp

Co-authored-by: Hari <webmail.hari@gmail.com>
This commit is contained in:
Anton Bukov 2023-05-09 12:17:08 +02:00
parent e7bb0b38e1
commit 422676aef2

View File

@ -4189,7 +4189,7 @@ MemberList::MemberMap MagicType::nativeMembers(ASTNode const*) const
});
case Kind::MetaType:
{
solAssert(m_typeArgument != nullptr, "");
solAssert(!m_typeArgument, "");
if (m_typeArgument->category() == Type::Category::Contract)
{
ContractDefinition const& contract = dynamic_cast<ContractType const&>(*m_typeArgument).contractDefinition();