Add assertion for annotated type in Structtype::canBeUsedExternally

This commit is contained in:
Alex Beregszaszi 2018-09-21 14:25:05 +01:00
parent 785cbf4005
commit 69ff61d149

View File

@ -2126,8 +2126,11 @@ bool StructType::canBeUsedExternally(bool _inLibrary) const
// passed by value and thus the encoding does not differ, but it will disallow
// mappings.
for (auto const& var: m_struct.members())
{
solAssert(var->annotation().type, "");
if (!var->annotation().type->canBeUsedExternally(false))
return false;
}
}
return true;
}