diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-08-19 10:03:35 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-11-08 12:09:22 -0500 |
commit | 5c87ebd7b24db75c64443a708f6005ecad3b763e (patch) | |
tree | c12a06497ac4a6582fbb9faf20c55fb55c12d87a /includes/ghcconfig.h | |
parent | 3db2ab306d56582ac4d7600755393bf2e52a86cf (diff) | |
download | haskell-5c87ebd7b24db75c64443a708f6005ecad3b763e.tar.gz |
SetLevels: Don't set context level when floating cases
When floating a single-alternative case we previously would set the
context level to the level where we were floating the case. However,
this is wrong as we are only moving the case and its binders. This
resulted in #16978, where the disrepancy caused us to
unnecessarily abstract over some free variables of the case body,
resulting in shadowing and consequently Core Lint failures.
(cherry picked from commit a2a0e6f3bb2d02a9347dec4c7c4f6d4480bc2421)
Diffstat (limited to 'includes/ghcconfig.h')
0 files changed, 0 insertions, 0 deletions