You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleFoowhere
foo = bar where bar r = r +1
r = foo 2
Error at bad.purs line 3, column 5:
Error in binding group [foo,r]
foo may not be defined in the current scope.
The top-level r is conflicting with the r argument inside of foos where clause. It works if you change the argument name or top-level name to something else.
The text was updated successfully, but these errors were encountered:
If anyone wants to have a go at fixing this before I get to it, the issue is that these two functions should not be in the same binding group. The fix is to ignore shadowed names here:
The top-level
r
is conflicting with ther
argument inside offoo
swhere
clause. It works if you change the argument name or top-level name to something else.The text was updated successfully, but these errors were encountered: