diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2017-09-29 10:34:38 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2017-09-29 10:56:58 +1000 |
commit | f2cf8e76fd184c95f2ad2f81659b60ee2ce75ec3 (patch) | |
tree | 6e7d09162e9db8c2f44c47f6928ca1842358825b /src/test | |
parent | 1fe789ac1855488f2fef392e3b8fb74229e907f5 (diff) | |
download | scala-async-f2cf8e76fd184c95f2ad2f81659b60ee2ce75ec3.tar.gz scala-async-f2cf8e76fd184c95f2ad2f81659b60ee2ce75ec3.tar.bz2 scala-async-f2cf8e76fd184c95f2ad2f81659b60ee2ce75ec3.zip |
Fix ANF transform for corner case in late transforms
Unfortunately I wasn't able to extract a test case, but the patch
has been tested to fix a problem on a real world code base.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/scala/scala/async/run/WarningsSpec.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scala/scala/async/run/WarningsSpec.scala b/src/test/scala/scala/async/run/WarningsSpec.scala index c80bf9e..c76168e 100644 --- a/src/test/scala/scala/async/run/WarningsSpec.scala +++ b/src/test/scala/scala/async/run/WarningsSpec.scala @@ -15,7 +15,7 @@ class WarningsSpec { @Test // https://github.com/scala/async/issues/74 - def noPureExpressionInStatementPositionWarning_t74() { + def noPureExpressionInStatementPositionWarning_t74(): Unit = { val tb = mkToolbox(s"-cp ${toolboxClasspath} -Xfatal-warnings") // was: "a pure expression does nothing in statement position; you may be omitting necessary parentheses" tb.eval(tb.parse { |