aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorRJ Catalano <catalanor0220@gmail.com>2016-01-12 13:41:20 +0800
committerRJ Catalano <catalanor0220@gmail.com>2016-01-12 13:41:20 +0800
commitc45593a44480f846302fdb652e23bd47988fba84 (patch)
tree84226edd9239da911335f93641e5046766f2e55a /libsolidity/analysis
parentb230fe19052307d1b71372599ccaf8e1440e1473 (diff)
downloaddexon-solidity-c45593a44480f846302fdb652e23bd47988fba84.tar.gz
dexon-solidity-c45593a44480f846302fdb652e23bd47988fba84.tar.zst
dexon-solidity-c45593a44480f846302fdb652e23bd47988fba84.zip
clarification on dynamic arrays, switcheroo on typepointer, and a documentation test added
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index 3fb7303f..ab1151a1 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -784,7 +784,6 @@ bool TypeChecker::visit(TupleExpression const& _tuple)
{
vector<ASTPointer<Expression>> const& components = _tuple.components();
TypePointers types;
- TypePointer inlineArrayType;
if (_tuple.annotation().lValueRequested)
{
@@ -807,6 +806,7 @@ bool TypeChecker::visit(TupleExpression const& _tuple)
}
else
{
+ TypePointer inlineArrayType;
for (size_t i = 0; i < components.size(); ++i)
{
// Outside of an lvalue-context, the only situation where a component can be empty is (x,).