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
call ensure_expr before narrowing in comprehensions
Summary:
fixes#350
Previously we calculated the narrowing, and then called ensure_expr on every sub-expression using a visitor. This meant that the narrows weren't being applied properly.
We need to bind any names declared by walruses before we do the narrowing, which requires moving the ensure_expr calls into bind_comprehensions.
Reviewed By: rchen152
Differential Revision: D75472199
fbshipit-source-id: 9865df98c9cf3bc84dd21e0e2e3d01a9181ae72b
0 commit comments