Skip to content

Commit ecfbb83

Browse files
authored
Merge pull request #696 from google-research/record-ref-typecheck
Add missing `RecordRef` case in `typeCheckCon`. Fixes #529.
2 parents f8d8c6d + 291aca2 commit ecfbb83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/Type.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ typeCheckCon con = case con of
638638
return $ RawRefTy ty
639639
_ -> error $ "Not a valid ref: " ++ pprint conRef
640640
ParIndexCon t v -> t|:TyKind >> v|:IdxRepTy >> return t
641-
RecordRef _ -> error "Not implemented"
641+
RecordRef xs -> (RawRefTy . RecordTy . NoExt) <$> traverse typeCheckRef xs
642642

643643
typeCheckRef :: HasType a => a -> TypeM Type
644644
typeCheckRef x = do

0 commit comments

Comments
 (0)