We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eabdbf4 commit 68afa5cCopy full SHA for 68afa5c
src/script/scala/progscala3/BracesSyntax.scala
@@ -1,6 +1,7 @@
1
// src/script/scala/progscala3/BracesSyntax.scala
2
3
-// For completeness, Scala 2 imports. Still allowed in Scala 3.0:
+// For completeness, Scala 2 imports. Still allowed in Scala 3.0, but not
4
+// with the -source:future flag we use in SBT:
5
import scala.concurrent._
6
import java.util.{Queue => JQueue}
7
import java.util.{HashMap => _, _}
@@ -58,7 +59,6 @@ try { // Can omit {} if nothing else is done with source...
58
59
// do something with it
60
} catch { // However, the {} are required for catch clauses
61
case NonFatal(ex) => println(ex)
-}
62
} finally { // Can omit {} for both finally and if here.
63
if (source != None) {
64
source.get.close
0 commit comments