Conversation
| tlFatalWarnings := { | ||
| tlFatalWarnings.value && !tlIsScala3.value | ||
| }, |
There was a problem hiding this comment.
idk if it's legit or not, would be ideal to fix this and re-enable fatals.
[warn] -- Warning: /workspace/cats-effect-cps/core/shared/src/test/scala/cats/effect/cps/AsyncAwaitSpec.scala:217:25
[warn] 217 | async[OptionTIO](optionT.await).value.await
[warn] | ^^^^^^^^^^^^^
[warn] | unused variable creation, effect may be lost
[warn] |---------------------------------------------------------------------------
[warn] |Inline stack trace
[warn] |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[warn] |This location contains code that was inlined from AsyncAwaitSpec.scala:217
[warn] ---------------------------------------------------------------------------
[warn] one warning found
There was a problem hiding this comment.
As far as I can tell that one is out of our direct control, most likely happening during the macro expansion carried out by dotty-cps-async.
Maybe @rssh has an idea ? Ruslan, if you lurk, the repro steps are, once this branch is checked out and SBT is started :
> ++ 3.2.1
> coreJVM/test
That being said, I don't think this is an impediment to the merging of this PR
There was a problem hiding this comment.
You can define
implicit val printCode = cps.macros.flags.PrintCode
to see, what's going on
There was a problem hiding this comment.
The problem that in internal async we materialize monad in var, which is not used (and issue warning about this) because the result is await which translated to argument.
|
Warning can be reenabled after #99 |
No description provided.