Skip to content

Commit

Permalink
[ fix ] Fix pattern matching on arrow types
Browse files Browse the repository at this point in the history
  • Loading branch information
spcfox authored and GulinSS committed Feb 22, 2025
1 parent 1c7145f commit 4ba2322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Case/CaseBuilder.idr
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ groupCons fc fn pvars cs
then addConG n 0 pargs pats pid rhs acc
else throw (CaseCompile cfc fn (NotFullyApplied n))
addGroup (PArrow _ _ s t) pprf pats pid rhs acc
= addConG (UN $ Basic "->") 0 [<t, s] pats pid rhs acc
= addConG (UN $ Basic "->") 0 [<s, t] pats pid rhs acc
-- Go inside the delay; we'll flag the case as needing to force its
-- scrutinee (need to check in 'caseGroups below)
addGroup (PDelay _ _ pty parg) pprf pats pid rhs acc
Expand Down

0 comments on commit 4ba2322

Please sign in to comment.