Skip to content

Commit

Permalink
Only need to reduce conflicts during BetaReduction (#2979)
Browse files Browse the repository at this point in the history
  • Loading branch information
deusaquilus authored Jan 15, 2024
1 parent dd028a7 commit b4b7acf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ case class BetaReduction(map: IMap[Ast, Ast], typeBehavior: TypeBehavior, emptyB
// Prepending IMap[Ast, Ast]() is needed otherwise 2.13 fails complaining:
// Note: io.getquill.ast.Ident <: io.getquill.ast.Ast, but trait Map is invariant in type K.
val bodyr =
new BetaReduction(IMap[Ast, Ast]() ++ conflicts ++ params.zip(newParams), typeBehavior, emptyBehavior)
new BetaReduction(IMap[Ast, Ast]() ++ conflicts, typeBehavior, emptyBehavior)
.apply(body)
apply(BetaReduction(map ++ newParams.zip(values).toMap, typeBehavior, emptyBehavior).apply(bodyr))

Expand Down

0 comments on commit b4b7acf

Please sign in to comment.