@@ -14,7 +14,7 @@ import Uniques._
1414import ast .Trees ._
1515import ast .untpd
1616import Flags .GivenOrImplicit
17- import util .{NoSource , SimpleIdentityMap , SourceFile }
17+ import util .{NoSource , SimpleIdentityMap , SourceFile , HashSet }
1818import typer .{Implicits , ImportInfo , Inliner , SearchHistory , SearchRoot , TypeAssigner , Typer , Nullables }
1919import Nullables .{NotNullInfo , given _ }
2020import Implicits .ContextualImplicits
@@ -534,7 +534,7 @@ object Contexts {
534534 def settings : ScalaSettings = base.settings
535535 def definitions : Definitions = base.definitions
536536 def platform : Platform = base.platform
537- def pendingUnderlying : mutable .HashSet [Type ] = base.pendingUnderlying
537+ def pendingUnderlying : util .HashSet [Type ] = base.pendingUnderlying
538538 def uniqueNamedTypes : Uniques .NamedTypeUniques = base.uniqueNamedTypes
539539 def uniques : util.HashSet [Type ] = base.uniques
540540
@@ -838,8 +838,8 @@ object Contexts {
838838 def nextSymId : Int = { _nextSymId += 1 ; _nextSymId }
839839
840840 /** Sources that were loaded */
841- val sources : mutable .HashMap [AbstractFile , SourceFile ] = new mutable .HashMap [AbstractFile , SourceFile ]
842- val sourceNamed : mutable .HashMap [TermName , SourceFile ] = new mutable .HashMap [TermName , SourceFile ]
841+ val sources : util .HashMap [AbstractFile , SourceFile ] = util .HashMap [AbstractFile , SourceFile ]()
842+ val sourceNamed : util .HashMap [TermName , SourceFile ] = util .HashMap [TermName , SourceFile ]()
843843
844844 // Types state
845845 /** A table for hash consing unique types */
@@ -869,7 +869,7 @@ object Contexts {
869869
870870 /** The set of named types on which a currently active invocation
871871 * of underlying during a controlled operation exists. */
872- private [core] val pendingUnderlying : mutable .HashSet [Type ] = new mutable .HashSet [Type ]
872+ private [core] val pendingUnderlying : util .HashSet [Type ] = util .HashSet [Type ]()
873873
874874 /** A map from ErrorType to associated message. We use this map
875875 * instead of storing messages directly in ErrorTypes in order
0 commit comments