diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-21 21:25:05 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-21 21:25:05 +0800 |
commit | 69ff61d149b6952b3ba149d35b66bac960234360 (patch) | |
tree | b40388cf67397966cf3ff3b1ca3e5b4598325aa0 | |
parent | 785cbf40056e8d4c3c7629d37ec69b403e768aa9 (diff) | |
download | dexon-solidity-69ff61d149b6952b3ba149d35b66bac960234360.tar dexon-solidity-69ff61d149b6952b3ba149d35b66bac960234360.tar.gz dexon-solidity-69ff61d149b6952b3ba149d35b66bac960234360.tar.bz2 dexon-solidity-69ff61d149b6952b3ba149d35b66bac960234360.tar.lz dexon-solidity-69ff61d149b6952b3ba149d35b66bac960234360.tar.xz dexon-solidity-69ff61d149b6952b3ba149d35b66bac960234360.tar.zst dexon-solidity-69ff61d149b6952b3ba149d35b66bac960234360.zip |
Add assertion for annotated type in Structtype::canBeUsedExternally
-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 25702f19..36dcbfe6 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; } |