Skip to content

Commit

Permalink
Merge pull request google-research#696 from google-research/record-re…
Browse files Browse the repository at this point in the history
…f-typecheck

Add missing `RecordRef` case in `typeCheckCon`. Fixes google-research#529.
  • Loading branch information
dougalm authored Nov 23, 2021
2 parents f8d8c6d + 291aca2 commit ecfbb83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ typeCheckCon con = case con of
return $ RawRefTy ty
_ -> error $ "Not a valid ref: " ++ pprint conRef
ParIndexCon t v -> t|:TyKind >> v|:IdxRepTy >> return t
RecordRef _ -> error "Not implemented"
RecordRef xs -> (RawRefTy . RecordTy . NoExt) <$> traverse typeCheckRef xs

typeCheckRef :: HasType a => a -> TypeM Type
typeCheckRef x = do
Expand Down

0 comments on commit ecfbb83

Please sign in to comment.