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

Specifiy type of set in toTensor for HashSet | OrderedSet #656

Merged
merged 2 commits into from
Jun 16, 2024

Conversation

Vindaar
Copy link
Collaborator

@Vindaar Vindaar commented Jun 16, 2024

As mentioned in the commit message, the SomeSet can make the compiler try to pick the SomeSet toTensor in cases where it really does not belong.

Example:
https://github.com/SciNim/scinim/actions/runs/9537499650/job/26285671722?pr=20

The generic + generic type class leads the compiler to become drunk
and chooses to compile code that really does not belong in there.

We might further want to restrict `T` as well, but I don't want to be
too restrictive for now.
@Vindaar Vindaar merged commit fa856b0 into mratsim:master Jun 16, 2024
6 checks passed
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.

1 participant