Skip to content
Snippets Groups Projects
Commit 42bee5aa authored by Sebastian Graf's avatar Sebastian Graf Committed by Marge Bot
Browse files

Arity: Require called *exactly once* for eta exp with -fpedantic-bottoms (#24296)

In #24296, we had a program in which we eta expanded away an error despite the
presence of `-fpedantic-bottoms`.
This was caused by turning called *at least once* lambdas into one-shot lambdas,
while with `-fpedantic-bottoms` it is only sound to eta expand over lambdas that
are called *exactly* once.
An example can be found in `Note [Combining arity type with demand info]`.

Fixes #24296.
parent eaf8a06d
No related branches found
No related tags found
No related merge requests found
Showing
with 212 additions and 77 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment