aboutsummaryrefslogtreecommitdiffstats
path: root/src/lift.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-12-26 20:15:51 +0000
committerDavid Robillard <d@drobilla.net>2012-12-26 20:15:51 +0000
commit3f63c53b6d1188f1b6f0cd94fbb67ce48965b14d (patch)
tree5c3d2aa57501df81a47cdcd3bb5fbf12a42aed4b /src/lift.cpp
parent9d70db157eb9458f6716eacf24752fcfbb205fcb (diff)
downloadresp-3f63c53b6d1188f1b6f0cd94fbb67ce48965b14d.tar.gz
resp-3f63c53b6d1188f1b6f0cd94fbb67ce48965b14d.tar.bz2
resp-3f63c53b6d1188f1b6f0cd94fbb67ce48965b14d.zip
Fix lifted type declarations.
git-svn-id: http://svn.drobilla.net/resp/trunk@449 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/lift.cpp')
-rw-r--r--src/lift.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lift.cpp b/src/lift.cpp
index 48fcf4e..8cdf654 100644
--- a/src/lift.cpp
+++ b/src/lift.cpp
@@ -188,8 +188,9 @@ lift_fn(CEnv& cenv, Code& code, const ATuple* fn) throw()
cenv.setType(impl, realImplT);
// Create type definition for closure type
- const AST* tdef = resp_lift(
- cenv, code, tup(Cursor(), cenv.penv.sym("def-type"), tsym, closureT, 0));
+ List tdef(Cursor(), cenv.penv.sym("def-type"), tsym, 0);
+ tdef.push_back(closureT);
+
code.push_back(tdef);
cenv.tenv.def(tsym, closureT);