aboutsummaryrefslogtreecommitdiffstats
path: root/typing.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-03-15 05:50:11 +0000
committerDavid Robillard <d@drobilla.net>2009-03-15 05:50:11 +0000
commit1bf9034de882d364390e8887945a150bfb3873c1 (patch)
tree28279706acce83f9d6323ebcb046188ffe3069a8 /typing.cpp
parent43535af604602e1bfa72363bd0e6cfc84807c33e (diff)
downloadresp-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.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/typing.cpp b/typing.cpp
index 086db79..f926dde 100644
--- a/typing.cpp
+++ b/typing.cpp
@@ -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();