Convert to mobile type for array type.

This commit is contained in:
chriseth 2017-03-06 14:38:29 +01:00
parent fe5f85ef34
commit c500d9f717

View File

@ -1014,7 +1014,7 @@ bool TypeChecker::visit(TupleExpression const& _tuple)
fatalTypeError(components[i]->location(), "Invalid mobile type.");
if (i == 0)
inlineArrayType = types[i];
inlineArrayType = types[i]->mobileType();
else if (inlineArrayType)
inlineArrayType = Type::commonType(inlineArrayType, types[i]);
}