clarification on dynamic arrays, switcheroo on typepointer, and a documentation test added

This commit is contained in:
RJ Catalano
2016-01-11 23:41:20 -06:00
parent b230fe1905
commit c45593a444
4 changed files with 21 additions and 4 deletions
+1 -1
View File
@@ -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,).