From 2f42cbc0483c437632dd810111964600bbdb900c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Oct 2009 03:29:02 +0000 Subject: Fix ellipses unification. git-svn-id: http://svn.drobilla.net/resp/tuplr@237 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/unify.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/unify.cpp b/src/unify.cpp index 5255f54..1cecfb5 100644 --- a/src/unify.cpp +++ b/src/unify.cpp @@ -136,7 +136,8 @@ unify(const Constraints& constraints) assert(st && tt); cp.push_back(Constraint(st, tt, st->loc)); } - if (si == s->end() && ti == t->end()) + if (si == s->end() && ti == t->end() + || (*ti)->str() == "..." || (*si)->str() == "...") return unify(cp); } throw Error(s->loc ? s->loc : t->loc, -- cgit v1.2.1