Skip to content
Closed
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
3 changes: 2 additions & 1 deletion src/lean.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1373,9 +1373,10 @@ and declare_ind { name = n; params; ty; ctors; univs } i =
fields
in
let implfs = List.map (fun _ -> []) fields in
let poly = PolyFlags.default in
ignore
(Record.Internal.declare_projections (mind, 0) ~kind ~inhabitant_id
proj_flags implfs)
proj_flags ~poly implfs)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC the poly argument is ignored for primitive records
If that's correct please add a comment about it
(poly = default is incorrect otherwise as we should be univ poly)

| _ -> ()
in
(mind, algs, ind_name, cnames, univs, squashy)
Expand Down