diff options
author | David Robillard <d@drobilla.net> | 2009-10-16 03:29:02 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-10-16 03:29:02 +0000 |
commit | 2f42cbc0483c437632dd810111964600bbdb900c (patch) | |
tree | 2a0a424999fc46bbff66475ca5b18a8935404f1b /src/unify.cpp | |
parent | 195598d60fec7a9ea2096143d853fab8232b5138 (diff) | |
download | resp-2f42cbc0483c437632dd810111964600bbdb900c.tar.gz resp-2f42cbc0483c437632dd810111964600bbdb900c.tar.bz2 resp-2f42cbc0483c437632dd810111964600bbdb900c.zip |
Fix ellipses unification.
git-svn-id: http://svn.drobilla.net/resp/tuplr@237 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/unify.cpp')
-rw-r--r-- | src/unify.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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, |