Skip to content

ensure_struct_record: qualify field type names for cross-file struct references#4

Merged
DominicPM merged 1 commit intomainfrom
type-name-visibility
Mar 25, 2026
Merged

ensure_struct_record: qualify field type names for cross-file struct references#4
DominicPM merged 1 commit intomainfrom
type-name-visibility

Conversation

@DominicPM
Copy link
Copy Markdown
Owner

When a second micro_c_file invocation defines a struct whose fields reference types from a previous invocation, Datatype_Records.record failed with "Undeclared type constructor" because struct_record_typ constructs Term.Type with short names. Resolve field type constructor names to their fully qualified internal names via Proof_Context before passing to Datatype_Records.record.

…references

When a second micro_c_file invocation defines a struct whose fields
reference types from a previous invocation, Datatype_Records.record
failed with "Undeclared type constructor" because struct_record_typ
constructs Term.Type with short names. Resolve field type constructor
names to their fully qualified internal names via Proof_Context before
passing to Datatype_Records.record.
@DominicPM DominicPM self-assigned this Mar 25, 2026
@DominicPM DominicPM added the bug Something isn't working label Mar 25, 2026
@DominicPM DominicPM merged commit f8e08ba into main Mar 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant