Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sorry about the multiple commit, I lost the hang of git -.-' Closes #326

  • Loading branch information...
commit c22d28fd3498e7d1b22edc37e787c5a6f3bfb3b9 1 parent b492ed4
@shamanas shamanas authored nddrylliog committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  source/rock/middle/FunctionCall.ooc
View
2  source/rock/middle/FunctionCall.ooc
@@ -325,7 +325,7 @@ FunctionCall: class extends Expression {
if(closureIndex > depth) { // if it's not found (-1), this will be false anyway
closure := trail get(closureIndex) as FunctionDecl
- if(closure isAnon && expr == null && !ref vDecl isGlobal) {
+ if(closure isAnon && expr == null && !ref vDecl isGlobal() && !closure args map(|value| value name) contains?(ref vDecl name + "_generic")) { // the ref may also be a closure's generic argument, in wich case we just ignore this
closure markForPartialing(ref vDecl, "v")
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.