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
2.13.2: @uncheckedVariance is ignored in type member definitions #11968
Comments
Unchecked variance annotation was prompted by buggy implicit search involving variant higher-kinded types, the bug still persist in
I can't seem to find any workaround to compile this code under |
I didn't know you can use |
@neko-kai can you open another issue for the implicit search problem? |
will do |
…impossible to compile the project on that version
…impossible to compile the project on that version
* Update to Scala 2.13.2, replace silencer @silent with @scala.annotation.nowarn * Get rid of warnings * postpone updating to 2.13.2 due to bug scala/bug#11968 that makes it impossible to compile the project on that version * Fallback to `@silent` instead of `@nowarn` and silencer-1.6.0 due to ghik/silencer#53 * fix build * fix build * fix 2.12 build * fix 2.12 build * fix 2.12 build
reproduction steps
To reproduce execute:
problem
Unchecked variance annotations are ignored and variance errors abort compilation:
Minimized example (https://scastie.scala-lang.org/NupT3nqjS6qGhHIIAYaA3A):
expectation
Expected code to compile as in 2.13.1.
The text was updated successfully, but these errors were encountered: