diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-07-07 09:35:05 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-07-07 09:40:44 +1000 |
commit | f3f058991b207a07041672a7e119422d9054788d (patch) | |
tree | 490aec21bd028f8ff96b3b33ebcbe1ea3b76d993 /CONTRIBUTING.md | |
parent | 5aa390e7cd01c7564c2c78cd786f42801a3ee1f0 (diff) | |
download | scala-async-f3f058991b207a07041672a7e119422d9054788d.tar.gz scala-async-f3f058991b207a07041672a7e119422d9054788d.tar.bz2 scala-async-f3f058991b207a07041672a7e119422d9054788d.zip |
Avoid compiler warning when awaiting Future[Unit]
During the ANF transform, we were generating a tree of the shape:
{
val temp: Unit = await(futureOfUnit)
temp
()
}
I tried to simplifiy this to avoid creating the temporary value,
but this proved difficult as it would have required changes to
the subsequent state machine transformation.
Even replacing `temp` with `()` made the state machine transform
harder.
So for now, I've just inserted `temp.asInstanceOf[Unit]` to hide
from the compiler warning.
Fixes #74
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions