Skip to content

Commit

Permalink
[ re #5701 ] Update comment on giveExpr
Browse files Browse the repository at this point in the history
  • Loading branch information
jespercockx committed Dec 21, 2021
1 parent 427911a commit 015759c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/full/Agda/Interaction/BasicOps.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ parseExprIn ii rng s = do
withMetaInfo mi $
concreteToAbstract (clScope mi) e

-- Type check the given expression and assign its value to the meta
-- Precondition: we are in the context where the given meta was created.
giveExpr :: UseForce -> Maybe InteractionId -> MetaId -> Expr -> TCM Term
giveExpr force mii mi e = do
mv <- lookupMeta mi
-- In the context (incl. signature) of the meta variable,
-- type check expression and assign meta
let t = case mvJudgement mv of
IsSort{} -> __IMPOSSIBLE__
HasType _ _ t -> t
Expand Down

0 comments on commit 015759c

Please sign in to comment.