Skip to content

Commit 71fad1a

Browse files
author
Dean Wampler
committed
Fixed import syntax errors; new restrictions!
1 parent cd0d0eb commit 71fad1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/script/scala/progscala3/BracesSyntax.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// For completeness, Scala 2 imports. Still allowed in Scala 3.0:
44
import scala.concurrent._
55
import java.util.{Queue => JQueue}
6-
import java.util.{*, HashMap => _}
6+
import java.util.{HashMap => _, _}
77

88
// Braces syntax - valid in both Scala 2 and 3
99
// Braces around single expressions can be omitted, but they

src/script/scala/progscala3/IndentationSyntax.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// For completeness, Scala 3 imports:
44
import scala.concurrent.{given, *}
55
import java.util.Queue as JQueue
6-
import java.util.{*, HashMap as _}
6+
import java.util.{HashMap as _, *}
77

88
// Significant indentation syntax.
99
// All the +end identifier+ markers are optional!

0 commit comments

Comments
 (0)