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

Variance issue for Function #96

Open
oberblastmeister opened this issue Jan 28, 2023 · 0 comments
Open

Variance issue for Function #96

oberblastmeister opened this issue Jan 28, 2023 · 0 comments

Comments

@oberblastmeister
Copy link
Contributor

I'm pretty sure the A parameter for Function<A, R> should be contravariant, but it is covariant because of (PhantomData<A>, PhantomData<R>). Changing it to PhantomData<fn(A) -> R> should fix this

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

No branches or pull requests

1 participant