mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5049 from ethereum/structtype-assert-annotation
Add assertion for annotated type in Structtype::canBeUsedExternally
This commit is contained in:
commit
8f96fe698d
@ -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