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

@@ -138,6 +138,7 @@ obj type (Object) {
return string("impossible type, indirection:") + indirection
}
fun clone_with_increased_indirection(): *type return clone_with_indirection(indirection+1);
fun clone_with_increased_indirection(more: int): *type return clone_with_indirection(indirection+more);
fun clone_with_decreased_indirection(): *type return clone_with_indirection(indirection-1);
fun clone_with_indirection(ind: int): *type {
var to_ret = new<type>()