Skip to content

Commit

Permalink
More extra fields
Browse files Browse the repository at this point in the history
  • Loading branch information
0xd34df00d committed Aug 25, 2023
1 parent 216ccd2 commit e9c30b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typed-core/Pact/Core/IR/Typecheck.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ checkTermType checkty = \case
pure (TyModRef iface, Typed.Var irn i, [])
_ -> error "incorrect type"
_ -> error "checking modref against incorrect type"
IR.Lam ne te i ->
IR.Lam _info ne te i ->
case tyFunToArgList checkty of
(tl, ret) -> do
when (length tl /= NE.length ne) $ error "Arguments mismatch"
Expand Down Expand Up @@ -1212,7 +1212,7 @@ inferTerm = \case
pure (TyModRef iface, v', [])
[] -> error "Module reference does not implement any interfaces"
_ -> error "Cannot infer module reference "
IR.Lam nts e i -> do
IR.Lam _info nts e i -> do
let names = fst <$> nts
ntys <- traverse withTypeInfo nts
-- Todo: bidirectionality
Expand Down

0 comments on commit e9c30b7

Please sign in to comment.