diff options
author | chriseth <chris@ethereum.org> | 2018-11-28 18:48:51 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-11-28 18:49:00 +0800 |
commit | 4fa47322f9d6d66c551caa6cfd72c0838dda3dc3 (patch) | |
tree | 1c78b63b58c8cbf35e7fb1c106c55041fcb8c9ae /libsolidity | |
parent | 5e55cb17299e1c8f9a685637703e9bd956cfc826 (diff) | |
download | dexon-solidity-4fa47322f9d6d66c551caa6cfd72c0838dda3dc3.tar.gz dexon-solidity-4fa47322f9d6d66c551caa6cfd72c0838dda3dc3.tar.zst dexon-solidity-4fa47322f9d6d66c551caa6cfd72c0838dda3dc3.zip |
Remove obsolete comment.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index 9d536a3a..c41c372b 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -777,15 +777,10 @@ bool TypeChecker::visit(VariableDeclaration const& _variable) ) m_errorReporter.typeError(_variable.location(), "Variables cannot be declared in interfaces."); - // Variables can be declared without type (with "var"), in which case the first assignment - // sets the type. - // Note that assignments before the first declaration are legal because of the special scoping - // rules inherited from JavaScript. - // type is filled either by ReferencesResolver directly from the type name or by // TypeChecker at the VariableDeclarationStatement level. TypePointer varType = _variable.annotation().type; - solAssert(!!varType, "Failed to infer variable type."); + solAssert(!!varType, "Variable type not provided."); if (_variable.value()) expectType(*_variable.value(), *varType); |