Skip to content

Commit

Permalink
Constraining a constraint, not constrainting a constrain :O
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-bucev authored and vkuncak committed May 30, 2022
1 parent 36262b9 commit 9290a38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class FunctionClosure(override val s: Trees, override val t: ast.Trees)
// (note that this `vd` is already picked because it appears in `fdsFreeVars`).
exprOps.variablesOf(e)
case Path.CloseBound(vd, e) if exprOps.variablesOf(e).intersect(fdsFreeVars).nonEmpty =>
// `vd` may occur in a constrain somewhere, which can also transitively constraint the FVs
// `vd` may occur in a constraint somewhere, which can also transitively constrain the FVs
Set(vd.toVariable)
case Path.Condition(cond) =>
val varsCond = exprOps.variablesOf(cond)
Expand Down

0 comments on commit 9290a38

Please sign in to comment.