-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
@jdegoes encoding you may not have been aware of ^^^ |
(I think we can easily create a compiler plugin that does this optimisation automatically) |
@fommil This looks good. I'll fix this in 8. |
🤔 |
I raised a bug report with scalac. I suspect a bug in the interplay between this encoding, If ever there was a way to start the day depressed, I recommend discovering yet another scalac cliff edge. |
@fommil I was confused about that bug as well when I reviewed the code and saw that it was failing for dead code. It seemed to be a total pattern match, so i'm left wondering why it's a problem. I'd be interested to see why scalac things that's dead code. |
in the meantime |
See scala/bug#10822. This makes the pattern matcher think that `Later()` behaves covariantly, so it could match any `AsyncReturn[A]`.
hahahahahahahahaha. |
you can suppress scalafix warnings https://scalacenter.github.io/scalafix/docs/users/configuration#suppressing-rules |
(I'll do it later) |
close #8