diff options
author | Christian <c@ethdev.com> | 2014-12-15 23:09:50 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-12-15 23:09:50 +0800 |
commit | c40725c22adaa2159bd06894740f7559733afbb4 (patch) | |
tree | 979ec3f5ba0d4540097e56fd08f809880f35b7de /NameAndTypeResolver.cpp | |
parent | 40f7c32e57cf8b09d45f52935b8726f5baef5358 (diff) | |
download | dexon-solidity-c40725c22adaa2159bd06894740f7559733afbb4.tar.gz dexon-solidity-c40725c22adaa2159bd06894740f7559733afbb4.tar.zst dexon-solidity-c40725c22adaa2159bd06894740f7559733afbb4.zip |
Check that constructor does not have "returns" directive.
Diffstat (limited to 'NameAndTypeResolver.cpp')
-rw-r--r-- | NameAndTypeResolver.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/NameAndTypeResolver.cpp b/NameAndTypeResolver.cpp index 540b066e..2ad27680 100644 --- a/NameAndTypeResolver.cpp +++ b/NameAndTypeResolver.cpp @@ -62,11 +62,7 @@ void NameAndTypeResolver::resolveNamesAndTypes(ContractDefinition& _contract) // First, the parameter types of all functions need to be resolved before we can check // the types, since it is possible to call functions that are only defined later // in the source. - for (ASTPointer<FunctionDefinition> const& function: _contract.getDefinedFunctions()) - { - m_currentScope = &m_scopes[function.get()]; - function->checkTypeRequirements(); - } + _contract.checkTypeRequirements(); m_currentScope = &m_scopes[nullptr]; } |