diff options
author | David Robillard <d@drobilla.net> | 2009-03-15 05:50:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-03-15 05:50:11 +0000 |
commit | 1bf9034de882d364390e8887945a150bfb3873c1 (patch) | |
tree | 28279706acce83f9d6323ebcb046188ffe3069a8 /typing.cpp | |
parent | 43535af604602e1bfa72363bd0e6cfc84807c33e (diff) | |
download | resp-1bf9034de882d364390e8887945a150bfb3873c1.tar.gz resp-1bf9034de882d364390e8887945a150bfb3873c1.tar.bz2 resp-1bf9034de882d364390e8887945a150bfb3873c1.zip |
Clean up ATuple, AType, Exp.
git-svn-id: http://svn.drobilla.net/resp/tuplr@98 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'typing.cpp')
-rw-r--r-- | typing.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,7 +44,7 @@ ASymbol::constrain(TEnv& tenv, Constraints& c) const void ATuple::constrain(TEnv& tenv, Constraints& c) const { - AType* t = new AType(ATuple(), loc); + AType* t = new AType(loc, NULL); FOREACH(const_iterator, p, *this) { (*p)->constrain(tenv, c); t->push_back(tenv.var(*p)); @@ -93,7 +93,7 @@ AClosure::constrain(TEnv& tenv, Constraints& c) const Constraints cp; cp.push_back(Constraint(tenv.var(this), tenv.var(), loc)); - AType* protT = new AType(ATuple(), loc); + AType* protT = new AType(loc, NULL); for (size_t i = 0; i < prot()->size(); ++i) { AType* tvar = tenv.fresh(dynamic_cast<ASymbol*>(prot()->at(i))); protT->push_back(tvar); @@ -141,7 +141,7 @@ ACall::constrain(TEnv& tenv, Constraints& c) const return; } } - AType* argsT = new AType(ATuple(), loc); + AType* argsT = new AType(loc, NULL); for (size_t i = 1; i < size(); ++i) argsT->push_back(tenv.var(at(i))); AType* retT = tenv.var(); |