Skip to content

Move .. in record to be printed after fields#9217

Open
jaredramirez wants to merge 1 commit intomainfrom
jared/push-ysovwqmuvouu
Open

Move .. in record to be printed after fields#9217
jaredramirez wants to merge 1 commit intomainfrom
jared/push-ysovwqmuvouu

Conversation

@jaredramirez
Copy link
Collaborator

Addresses comment from: #9196 (review)

Moves .. to appear at end of record types when printed.

Before: { .., field: a }
After: { field: a, ... }

Also fixes an error where empty record had extra spaces printed.

@jaredramirez jaredramirez force-pushed the jared/push-ysovwqmuvouu branch from 0d24931 to 1fa4c11 Compare February 27, 2026 22:45
Comment on lines +594 to +597
.unbound => |unbound_var| blk: {
unbound_ext_occurrences = try self.countVarOccurrences(unbound_var, root_var);
break :blk unbound_ext_occurrences > 1;
},
Copy link
Member

Choose a reason for hiding this comment

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

is this safe before generalization?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes, i think so, because this codepath is only hit if unifying two variables fail. we convert the vars into bytes for display in the error message, before setting to vars as .errs in the types store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants