Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions spectec/src/frontend/elab.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,8 @@ and infer_exp' env e : (Il.exp' * Il.typ') attempt =
Ok (Il.ListE es', Il.IterT (t, Il.List))
else
fail_infer e.at "expression sequence"
| ListE [] ->
fail_infer e.at "empty list"
| ListE es -> (* treat as homogeneous sequence, not principal *)
let* es', ts = infer_exp_list env es in
let t = List.hd ts in
Expand Down
Loading