diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-10 04:00:39 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-14 21:21:47 +0800 |
commit | b225bf5d5364d72d75fab4a6843df665da28b842 (patch) | |
tree | b3ecdd0452e4a159ddfc52ef28e16ea13ea8bc5d /libsolidity/analysis/TypeChecker.cpp | |
parent | 1c1388f24178767db8d519b490914b1b8c390bed (diff) | |
download | dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar.gz dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar.bz2 dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar.lz dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar.xz dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar.zst dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.zip |
Remove useless payable & constant typecheck
Diffstat (limited to 'libsolidity/analysis/TypeChecker.cpp')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index 8dd45a90..dbc95c4f 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -500,8 +500,6 @@ bool TypeChecker::visit(FunctionDefinition const& _function) m_errorReporter.typeError(_function.location(), "Library functions cannot be payable."); if (!_function.isConstructor() && !_function.isFallback() && !_function.isPartOfExternalInterface()) m_errorReporter.typeError(_function.location(), "Internal functions cannot be payable."); - if (_function.isDeclaredConst()) - m_errorReporter.typeError(_function.location(), "Functions cannot be constant and payable at the same time."); } for (ASTPointer<VariableDeclaration> const& var: _function.parameters() + _function.returnParameters()) { |