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:43:04 +1000 |
commit | e1377aa06ffe817d15315bbce3a6a636f2dd1f0e (patch) | |
tree | 9462ab70a38a58519e7885f93b37d9f9be35382a /pending/run/fallback0 | |
parent | 9da0183d3932a432da312cce29184aaac788facb (diff) | |
download | scala-async-e1377aa06ffe817d15315bbce3a6a636f2dd1f0e.tar.gz scala-async-e1377aa06ffe817d15315bbce3a6a636f2dd1f0e.tar.bz2 scala-async-e1377aa06ffe817d15315bbce3a6a636f2dd1f0e.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
(cherry picked from commit f3f058991b207a07041672a7e119422d9054788d)
Diffstat (limited to 'pending/run/fallback0')
0 files changed, 0 insertions, 0 deletions