Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ollef committed Dec 29, 2023
1 parent 1ff760c commit b8b3294
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/Elaboration/Matching.hs
Original file line number Diff line number Diff line change
Expand Up @@ -754,13 +754,14 @@ splitConstructor outerContext config scrutineeValue scrutineeVar span (Name.Qual
_ -> do
typeType <- fetch $ Query.ElaboratedType typeName
typeType' <- Evaluation.evaluate Environment.empty typeType
let -- Ensure the metas don't depend on the scrutineeVar, because that
-- is guaranteed to lead to circularity when solving scrutineeVar
-- later.
contextWithoutScrutineeVar =
outerContext
{ Context.boundVars = IntSeq.delete scrutineeVar outerContext.boundVars
}
let
-- Ensure the metas don't depend on the scrutineeVar, because that
-- is guaranteed to lead to circularity when solving scrutineeVar
-- later.
contextWithoutScrutineeVar =
outerContext
{ Context.boundVars = IntSeq.delete scrutineeVar outerContext.boundVars
}
(metas, _) <- Elaboration.insertMetas contextWithoutScrutineeVar Elaboration.UntilTheEnd typeType'
f <- Unification.tryUnify outerContext (Domain.Neutral (Domain.Global typeName) $ Domain.Apps $ fromList metas) outerType
result <- goParams (Context.spanned span outerContext) metas mempty tele'
Expand Down

0 comments on commit b8b3294

Please sign in to comment.