diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-21 22:02:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-21 22:02:26 +0800 |
commit | 8f96fe698df64b5f35b7177621d4861b85167957 (patch) | |
tree | 412b61541f3a84c5916081115cf250c623596743 /libsolidity/ast | |
parent | dc9853bb6e47e9774141813ad17691c78fdd204c (diff) | |
parent | 69ff61d149b6952b3ba149d35b66bac960234360 (diff) | |
download | dexon-solidity-8f96fe698df64b5f35b7177621d4861b85167957.tar.gz dexon-solidity-8f96fe698df64b5f35b7177621d4861b85167957.tar.zst dexon-solidity-8f96fe698df64b5f35b7177621d4861b85167957.zip |
Merge pull request #5049 from ethereum/structtype-assert-annotation
Add assertion for annotated type in Structtype::canBeUsedExternally
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/Types.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index afedbb69..f49e1222 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -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; } |