Closed ScoreUnder closed 2 years ago
real-life code where I worked around it: https://github.com/ScoreUnder/canti-bot/commit/a92a67cb14d8b8ff1680accff3b400ceb3e66053
Hi, thanks - will look. It's with 0.9.8 and dotty-3.1.1 ?
It's with 0.9.8 and dotty-3.1.1 ?
It's with 0.9.7 and dotty 3.1.1. The issue still does happen on the latest master too (d82a36a5fce247eeeb6658cd92112f649f0825c9).
Thanks for looking into this
should be fixed now.
I found a compile-time error in my project which I bisected to one of these commits in dotty-cps-async:
I had to skip some which either would not build on my machine or which did not run in my project for other reasons (class version mismatch).
I have tried to minimise the code which triggers the bug, but here are a few pieces of code that all trigger it:
Import statements
```scala import cps.* import cps.monads.FutureAsyncMonad import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.Future ```1.
2.
3.
(Pick whichever is the simpler example for your internals)
Notably, removing the foreach-loop (which is not using
await
) somehow makes it work again, as does collapsing thematch
. In the 3rd example, if you extract the argument toawait
into a variable and await on the variable instead, that works too.