diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2018-05-09 13:08:39 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-09 13:08:39 +1000 |
commit | e04aa84ed4b9b9340d104d386e449da702b99e16 (patch) | |
tree | b0987e20a4d3a5d85ff94a1bb552b4e062f471d7 /src/test/scala/scala/async/run/WarningsSpec.scala | |
parent | 9de808535a546c49a04bd50c93212425f3344ba9 (diff) | |
parent | 3f035632e37da0c484fcf43310857263e3470433 (diff) | |
download | scala-async-e04aa84ed4b9b9340d104d386e449da702b99e16.tar.gz scala-async-e04aa84ed4b9b9340d104d386e449da702b99e16.tar.bz2 scala-async-e04aa84ed4b9b9340d104d386e449da702b99e16.zip |
Merge pull request #199 from xuwei-k/procedure-syntax
fix procedure syntax
Diffstat (limited to 'src/test/scala/scala/async/run/WarningsSpec.scala')
-rw-r--r-- | src/test/scala/scala/async/run/WarningsSpec.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/scala/scala/async/run/WarningsSpec.scala b/src/test/scala/scala/async/run/WarningsSpec.scala index 9c55af4..6c1282a 100644 --- a/src/test/scala/scala/async/run/WarningsSpec.scala +++ b/src/test/scala/scala/async/run/WarningsSpec.scala @@ -33,7 +33,7 @@ class WarningsSpec { @Test // https://github.com/scala/async/issues/74 - def noDeadCodeWarningForAsyncThrow() { + def noDeadCodeWarningForAsyncThrow(): Unit = { val global = mkGlobal("-cp ${toolboxClasspath} -Yrangepos -Ywarn-dead-code -Xfatal-warnings -Ystop-after:refchecks") // was: "a pure expression does nothing in statement position; you may be omitting necessary parentheses" val source = @@ -51,7 +51,7 @@ class WarningsSpec { } @Test - def noDeadCodeWarningInMacroExpansion() { + def noDeadCodeWarningInMacroExpansion(): Unit = { val global = mkGlobal("-cp ${toolboxClasspath} -Yrangepos -Ywarn-dead-code -Xfatal-warnings -Ystop-after:refchecks") val source = """ | class Test { @@ -76,7 +76,7 @@ class WarningsSpec { } @Test - def ignoreNestedAwaitsInIDE_t1002561() { + def ignoreNestedAwaitsInIDE_t1002561(): Unit = { // https://www.assembla.com/spaces/scala-ide/tickets/1002561 val global = mkGlobal("-cp ${toolboxClasspath} -Yrangepos -Ystop-after:typer ") val source = """ |