Remove special `(x,)` case from type assignment.

This commit is contained in:
chriseth 2018-07-10 15:58:46 +02:00
parent 6d28278b3f
commit 64abfd3e4a

View File

@ -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);
}
}
}