Fix templated types getting their indirection stripped off when used

This commit is contained in:
Nathan Braswell
2016-02-01 15:59:41 -05:00
parent 70ebefcc25
commit 24fb8d288f
3 changed files with 7 additions and 3 deletions

View File

@@ -193,7 +193,7 @@ fun transform_type(node: *tree<symbol>, scope: *ast_node, template_replacements:
println(type_syntax_str + " *************************")
if (template_replacements.contains_key(type_syntax_str)) {
print("Is in template_replacements, returning: ")
var to_ret = template_replacements[type_syntax_str]->clone_with_indirection(indirection)
var to_ret = template_replacements[type_syntax_str]->clone_with_increased_indirection(indirection)
println(to_ret->to_string())
return to_ret
}