diff options
author | chriseth <c@ethdev.com> | 2016-06-08 15:48:39 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-06-08 15:48:39 +0800 |
commit | fd64e3b7edc0a368fce9c7c8c967a9301c214a10 (patch) | |
tree | 029b473aeafa06d1a3180f5e2a96e674c60a0929 /libsolidity/codegen | |
parent | e97ac4fb4919b9008bd3534cd4b915b7fe70b920 (diff) | |
parent | ab7a22f4a0d95faacf453b76415eaee167aacdec (diff) | |
download | dexon-solidity-fd64e3b7edc0a368fce9c7c8c967a9301c214a10.tar dexon-solidity-fd64e3b7edc0a368fce9c7c8c967a9301c214a10.tar.gz dexon-solidity-fd64e3b7edc0a368fce9c7c8c967a9301c214a10.tar.bz2 dexon-solidity-fd64e3b7edc0a368fce9c7c8c967a9301c214a10.tar.lz dexon-solidity-fd64e3b7edc0a368fce9c7c8c967a9301c214a10.tar.xz dexon-solidity-fd64e3b7edc0a368fce9c7c8c967a9301c214a10.tar.zst dexon-solidity-fd64e3b7edc0a368fce9c7c8c967a9301c214a10.zip |
Merge pull request #634 from chriseth/fixConstructorOverride
Fix constructor override
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r-- | libsolidity/codegen/ContractCompiler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp index 3623046e..bcfd33f2 100644 --- a/libsolidity/codegen/ContractCompiler.cpp +++ b/libsolidity/codegen/ContractCompiler.cpp @@ -776,7 +776,10 @@ void ContractCompiler::appendModifierOrFunctionCode() { solAssert(m_currentFunction, ""); if (m_modifierDepth >= m_currentFunction->modifiers().size()) + { + solAssert(m_currentFunction->isImplemented(), ""); m_currentFunction->body().accept(*this); + } else { ASTPointer<ModifierInvocation> const& modifierInvocation = m_currentFunction->modifiers()[m_modifierDepth]; |