aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-10 21:58:46 +0800
committerchriseth <chris@ethereum.org>2018-07-10 21:58:46 +0800
commit64abfd3e4a9f2d41946fa999545b98dbdf36ad14 (patch)
tree883d9b2dd2b3f4aa8dd8cf69e69a47eb47dc0874
parent6d28278b3f2cc2b41928769d9de46e61799e167c (diff)
downloaddexon-solidity-64abfd3e4a9f2d41946fa999545b98dbdf36ad14.tar.gz
dexon-solidity-64abfd3e4a9f2d41946fa999545b98dbdf36ad14.tar.zst
dexon-solidity-64abfd3e4a9f2d41946fa999545b98dbdf36ad14.zip
Remove special ``(x,)`` case from type assignment.
-rw-r--r--libsolidity/analysis/TypeChecker.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index ac11bb63..a6a85492 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -1466,11 +1466,7 @@ bool TypeChecker::visit(TupleExpression const& _tuple)
if (components.size() == 1)
_tuple.annotation().type = type(*components[0]);
else
- {
- if (components.size() == 2 && !components[1])
- types.pop_back();
_tuple.annotation().type = make_shared<TupleType>(types);
- }
}
}