aboutsummaryrefslogtreecommitdiffstats
path: root/src/constrain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/constrain.cpp')
-rw-r--r--src/constrain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constrain.cpp b/src/constrain.cpp
index 3aee45a..e97bcc3 100644
--- a/src/constrain.cpp
+++ b/src/constrain.cpp
@@ -225,7 +225,7 @@ constrain_dot(TEnv& tenv, Constraints& c, const ATuple* call) throw(Error)
for (int i = 0; i < idx->val; ++i)
objT.push_back(tenv.var());
objT.push_back(retT);
- objT.push_back(new AType(obj->loc, AType::DOTS));
+ objT.push_back(tenv.Dots);
c.constrain(tenv, obj, objT);
}