Skip to content

Commit

Permalink
Give proper name instead of _ (see agda/agda2hs#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
jespercockx committed Jul 26, 2024
1 parent 3623f64 commit 42832b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Agda/Core/Typechecker.agda
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ inferApp ctx u v = do
return (tytype , TyApp gtu gc gtv)
{-# COMPILE AGDA2HS inferApp #-}

inferCase : {@0 cs} Γ u bs rt TCM (Σ[ t ∈ Type α ] Γ ⊢ TCase {cs = cs} {x = x} u bs rt ∶ t)
inferCase : {@0 cs} Γ u bs rt TCM (Σ[ t ∈ Type α ] Γ ⊢ TCase {x = x} u bs rt ∶ t)
inferCase ctx u bs rt = do
let r = rezzScope ctx
El s tu , gtu inferType ctx u
⟨ d ⟩ _ , (params , ixs) ⟨ rp ⟩ reduceToData r tu
⟨ d ⟩ dp , (params , ixs) ⟨ rp ⟩ reduceToData r tu
"can't typecheck a constrctor with a type that isn't a def application"
df ⟨ deq ⟩ tcmGetDatatype d
Erased refl checkCoverage df bs
Expand Down Expand Up @@ -207,7 +207,7 @@ checkCon : ∀ Γ
TCM (Γ ⊢ TCon c cargs ∶ ty)
checkCon ctx c {ccs} cargs (El s ty) = do
let r = rezzScope ctx
⟨ d ⟩ _ , (params , ixs) ⟨ rp ⟩ reduceToData r ty
⟨ d ⟩ dp , (params , ixs) ⟨ rp ⟩ reduceToData r ty
"can't typecheck a constrctor with a type that isn't a def application"
df ⟨ deq ⟩ tcmGetDatatype d
cid ⟨ refl ⟩ liftMaybe (getConstructor c df)
Expand Down

0 comments on commit 42832b0

Please sign in to comment.