mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add assertion for annotated type in Structtype::canBeUsedExternally
This commit is contained in:
parent
785cbf4005
commit
69ff61d149
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user