Skip to content

Fix shadowing bug in prepareAlts

Simon Peyton Jones requested to merge wip/T23012 into master

As #23012 (closed) showed, GHC.Core.Opt.Simpllify.Utils.prepareAlts was using an OutType to construct an InAlt. When shadowing is in play, this is outright wrong.

See Note [Shadowing in prepareAlts].

Edited by Simon Peyton Jones

Merge request reports