diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-21 00:50:26 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2015-03-25 21:26:05 +0800 |
commit | 9d6d7ccab86da43da03b79f7b74bf7146c0c0b14 (patch) | |
tree | 63ac5a52c0064df5a9a87644a8638beb7f3424c2 /AST.cpp | |
parent | 8f8e407306172ab75f5b200c1f1df87bb55fa2a6 (diff) | |
download | dexon-solidity-9d6d7ccab86da43da03b79f7b74bf7146c0c0b14.tar.gz dexon-solidity-9d6d7ccab86da43da03b79f7b74bf7146c0c0b14.tar.zst dexon-solidity-9d6d7ccab86da43da03b79f7b74bf7146c0c0b14.zip |
Parsing of not fully implemented functions
- Adding the possibility of omitting a function body by simply ending a
function definition with a semicolon
- Such a function is marked as not fully implemented and any contract
that contains such a function is considered a not fully implemented contract
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -311,8 +311,8 @@ void FunctionDefinition::checkTypeRequirements() modifier->checkTypeRequirements(isConstructor() ? dynamic_cast<ContractDefinition const&>(*getScope()).getBaseContracts() : vector<ASTPointer<InheritanceSpecifier>>()); - - m_body->checkTypeRequirements(); + if (m_body) + m_body->checkTypeRequirements(); } string FunctionDefinition::getCanonicalSignature() const |