Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly call items for HashSets. #23

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

dsrw
Copy link
Contributor

@dsrw dsrw commented Dec 2, 2021

Presently, calling print on an object that has a HashSet somewhere in the graph only works if the calling module has imported sets, due to nim-lang/Nim#18150. It seems that implicit items and pairs iterators in generic procs and templates are resolved in the caller's module, rather than where they're actually used.

This makes the call to items explicit, avoiding the issue.

@treeform treeform merged commit f78c855 into treeform:master Dec 2, 2021
@treeform
Copy link
Owner

treeform commented Dec 2, 2021

Looks good, thank you for the PR!

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