Skip to content

Conversation

seidewitz
Copy link
Member

This PR corrects a bug that caused implicit specializations not to be added for an individual definition declared as anything more specific than an occurrence definition. Such a definition gets an implicit specialization of Occurrences::Life, as required, but previously it did not get an implied specialization for the more specific kind of thing that it is. For example,

individual item def II;

resulted in the error “Must directly or indirectly specialize Items::Item”, because it was not being given the necessary implicit specialization of Items::Item. (Note that this error was avoided in the common case of the individual item definition specializing another non-individual item definition that already specializes Items::Item,)

The bug was caused because, when an occurrence definition was an individual definition, the OccurrenceDefinitionAdapter added an implicit specialization to Life instead of the normal base definition, rather than in addition to it. This PR corrects that.

@seidewitz seidewitz self-assigned this Sep 28, 2025
@seidewitz seidewitz added the bug Something isn't working label Sep 28, 2025
@seidewitz seidewitz added this to the 2025-09 milestone Sep 28, 2025
@seidewitz seidewitz merged commit 161bb62 into master Sep 29, 2025
2 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