Skip to content

Variance checking for higher-kinded types #5100

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

Closed
odersky opened this issue Sep 13, 2018 · 1 comment
Closed

Variance checking for higher-kinded types #5100

odersky opened this issue Sep 13, 2018 · 1 comment

Comments

@odersky
Copy link
Contributor

odersky commented Sep 13, 2018

Variance is currently not checked in higher-kinded types. The following lines should all give an error but don't:

  type F[-X] = X => X
  type G[+X] = X => X
  type H = [-X] => X => X
  type I = [+X] => X => X
@odersky odersky mentioned this issue Sep 13, 2018
4 tasks
@smarter
Copy link
Member

smarter commented Sep 13, 2018

Duplicate of #1252

@smarter smarter marked this as a duplicate of #1252 Sep 13, 2018
@smarter smarter closed this as completed Sep 13, 2018
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

2 participants