pass by reference should work for templates and objects now

This commit is contained in:
Nathan Braswell
2015-07-14 22:42:25 -04:00
parent 602810002b
commit 0ee44e829f
4 changed files with 50 additions and 22 deletions

View File

@@ -1521,6 +1521,7 @@ Type* ASTTransformation::typeFromTypeNode(NodeTree<Symbol>* typeNode, NodeTree<A
std::cout << "Template type! (" << edited << ")" << std::endl;
Type* templateTypeReplacement = templateTypeReplacements[edited]->clone();
templateTypeReplacement->modifyIndirection(indirection);
templateTypeReplacement->is_reference = is_reference;
return templateTypeReplacement;
}
std::cout << edited << " was not found in templateTypeReplacements" << std::endl;