mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
MacOS fix.
This commit is contained in:
parent
ae5b12f54b
commit
e21df35416
@ -732,8 +732,8 @@ bool TypeChecker::visit(Assignment const& _assignment)
|
|||||||
_assignment.annotation().type = t;
|
_assignment.annotation().type = t;
|
||||||
if (TupleType const* tupleType = dynamic_cast<TupleType const*>(t.get()))
|
if (TupleType const* tupleType = dynamic_cast<TupleType const*>(t.get()))
|
||||||
{
|
{
|
||||||
// Sequenced assignments of tuples is not valid.
|
// Sequenced assignments of tuples is not valid, make the result a "void" type.
|
||||||
_assignment.annotation().type = make_shared<TupleType const>();
|
_assignment.annotation().type = make_shared<TupleType>();
|
||||||
expectType(_assignment.rightHandSide(), *tupleType);
|
expectType(_assignment.rightHandSide(), *tupleType);
|
||||||
}
|
}
|
||||||
else if (t->category() == Type::Category::Mapping)
|
else if (t->category() == Type::Category::Mapping)
|
||||||
|
Loading…
Reference in New Issue
Block a user