Permalink
Browse files

newclay/compiler: fix bug in binding variadic argument of type/define…

…d? lambda
  • Loading branch information...
1 parent a8d1d2b commit 0ebd891ee7e8467dd3b1a152383f7a5f2efdf2a4 @jckarter jckarter committed Jun 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 newclay/compiler/newclay/evaluator/evaluator.clay
@@ -2442,7 +2442,7 @@ private argRTValue(arg:ast.BoundArgument, env)
= RTValue(argKind(arg.kind), evaluatePatternExpr(just(arg.type), env), ReferenceVariable(), arg.name);
private argRTValueList(arg:ast.BoundArgument, env) {
- var types = evaluateMultiExpr(*arg.type, env);
+ var types = evaluateMultiExpr(*just(arg.type), env);
var kind = argKind(arg.kind);
return RTValueList(map(t ref=> RTValue(kind, t, ReferenceVariable()), types), arg.name);
}

0 comments on commit 0ebd891

Please sign in to comment.