Skip to content

Commit

Permalink
Allow rec over DotT
Browse files Browse the repository at this point in the history
  • Loading branch information
polytypic committed Jan 21, 2020
1 parent 8d50675 commit 286b5c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions elab.ml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ let rec_from_extyp typ label s =
rec_t, AppT(unroll_t, ts), AppT(roll_t, ts), ak
| RecT(ak, unroll_t) as rec_t ->
rec_t, unroll_t, rec_t, ak
| DotT(t, lab) ->
let rec_t, unroll_t, roll_t, ak = find_rec t in
rec_t, DotT(unroll_t, lab), DotT(roll_t, lab), ak
| _ ->
error typ.at ("non-recursive type for " ^ label ^ ":"
^ " " ^ Types.string_of_extyp s) in
Expand Down

0 comments on commit 286b5c4

Please sign in to comment.