aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-10-15 22:02:00 +0800
committerchriseth <c@ethdev.com>2015-10-15 23:38:42 +0800
commite21df35416169a6804f6019c2fbb487c74bad596 (patch)
tree89459f2c1f3551f49048fac19ca328266da686ab
parentae5b12f54b43b7793600ad9b2c785fd0f9a5ed9e (diff)
downloaddexon-solidity-e21df35416169a6804f6019c2fbb487c74bad596.tar.gz
dexon-solidity-e21df35416169a6804f6019c2fbb487c74bad596.tar.zst
dexon-solidity-e21df35416169a6804f6019c2fbb487c74bad596.zip
MacOS fix.
-rw-r--r--libsolidity/TypeChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/TypeChecker.cpp b/libsolidity/TypeChecker.cpp
index e9d01a84..dcaecdfb 100644
--- a/libsolidity/TypeChecker.cpp
+++ b/libsolidity/TypeChecker.cpp
@@ -732,8 +732,8 @@ bool TypeChecker::visit(Assignment const& _assignment)
_assignment.annotation().type = t;
if (TupleType const* tupleType = dynamic_cast<TupleType const*>(t.get()))
{
- // Sequenced assignments of tuples is not valid.
- _assignment.annotation().type = make_shared<TupleType const>();
+ // Sequenced assignments of tuples is not valid, make the result a "void" type.
+ _assignment.annotation().type = make_shared<TupleType>();
expectType(_assignment.rightHandSide(), *tupleType);
}
else if (t->category() == Type::Category::Mapping)