diff options
author | David Robillard <d@drobilla.net> | 2012-12-26 00:38:09 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-12-26 00:38:09 +0000 |
commit | c80b61512a905e46e52f43e01c531a3ac4b8aeb5 (patch) | |
tree | 6f8f3c2176d8f87b666755b6b0311b55eca6e870 /src | |
parent | 32e3bdba4abbd63d7f2a1def7f7000b75c5165fe (diff) | |
download | resp-c80b61512a905e46e52f43e01c531a3ac4b8aeb5.tar.gz resp-c80b61512a905e46e52f43e01c531a3ac4b8aeb5.tar.bz2 resp-c80b61512a905e46e52f43e01c531a3ac4b8aeb5.zip |
Fix type constraints for lambdas with no arguments.
git-svn-id: http://svn.drobilla.net/resp/trunk@447 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src')
-rw-r--r-- | src/constrain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/constrain.cpp b/src/constrain.cpp index 3655396..66b4505 100644 --- a/src/constrain.cpp +++ b/src/constrain.cpp @@ -359,6 +359,8 @@ constrain_call(TEnv& tenv, Constraints& c, const ATuple* call) throw(Error) argsT.push_back(tenv.var(*i)); if (argsT.head) argsT.head->loc = call->loc; + else + argsT.head = new ATuple(NULL, NULL, Cursor()); c.constrain(tenv, head, tup(head->loc, tenv.Fn, argsT.head, retT, 0)); c.constrain(tenv, call, retT); } |