aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-28 18:48:51 +0800
committerchriseth <chris@ethereum.org>2018-11-28 18:49:00 +0800
commit4fa47322f9d6d66c551caa6cfd72c0838dda3dc3 (patch)
tree1c78b63b58c8cbf35e7fb1c106c55041fcb8c9ae /libsolidity/analysis
parent5e55cb17299e1c8f9a685637703e9bd956cfc826 (diff)
downloaddexon-solidity-4fa47322f9d6d66c551caa6cfd72c0838dda3dc3.tar.gz
dexon-solidity-4fa47322f9d6d66c551caa6cfd72c0838dda3dc3.tar.zst
dexon-solidity-4fa47322f9d6d66c551caa6cfd72c0838dda3dc3.zip
Remove obsolete comment.
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp7
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);