Skip to content
This repository has been archived by the owner on May 21, 2018. It is now read-only.

Illegal variance position in Mods #259

Closed
mielientiev opened this issue Jan 27, 2017 · 0 comments · Fixed by #260
Closed

Illegal variance position in Mods #259

mielientiev opened this issue Jan 27, 2017 · 0 comments · Fixed by #260
Assignees

Comments

@mielientiev
Copy link
Collaborator

https://gist.github.com/mielientiev/1873b2aea8f6f2bff81e13b597a7849c

In Scala 2.11 that code compiles. (due to bug in type checker). After https://github.com/scala/scala#5280 fix
But now it fails because of type alias is in the contravariant position.
The workaround is to add @uncheckedVariance.

We should spend some time for reviewing this problem and find better solution

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants