Regression in Scala 3 for propagation of @uncheckedVariance
via dependent types
#18438
Labels
itype:bug
stat:needs minimization
Needs a self contained minimization
stat:needs triage
Every issue needs to have an "area" and "itype" label
Compiler version
Scala 3.3.0
Minimized code
Output
Expectation
That the above code compiles without any errors just as it does in Scala 2.
Note that it is possible to avoid this issue by adding explicit type annotations, i.e. the following variant compiles fine
I have a hunch that the cause of this compiler error is due to
@uncheckedVariance
at https://github.com/apache/incubator-pekko/blob/580f12c29fb61b65758af9b0c31494af0af17175/stream/src/main/scala/org/apache/pekko/stream/scaladsl/Flow.scala#L69 not being properly propagated.I haven't had time to properly minimize the example since as you can see it occured in a fairly complex usecase but I will try and get around to it if I have time.
The text was updated successfully, but these errors were encountered: