aboutsummaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-07-07 09:35:05 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-07-07 09:43:04 +1000
commite1377aa06ffe817d15315bbce3a6a636f2dd1f0e (patch)
tree9462ab70a38a58519e7885f93b37d9f9be35382a /admin
parent9da0183d3932a432da312cce29184aaac788facb (diff)
downloadscala-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 'admin')
0 files changed, 0 insertions, 0 deletions