File tree 2 files changed +4
-4
lines changed
compiler/src/dotty/tools/dotc
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -340,11 +340,11 @@ class Definitions {
340
340
lazy val Predef_undefinedR = ScalaPredefModule .requiredMethodRef(" ???" )
341
341
def Predef_undefined (implicit ctx : Context ) = Predef_undefinedR .symbol
342
342
// The set of all wrap{X, Ref}Array methods, where X is a value type
343
- lazy val Predef_wrapArrayR : Set [TermRef ] = {
343
+ lazy val Predef_wrapArrayR : collection. Set [TermRef ] = {
344
344
val methodNames = ScalaValueTypes .map(TreeGen .wrapArrayMethodName) + nme.wrapRefArray
345
- methodNames.map(ScalaPredefModule .requiredMethodRef).toSet
345
+ methodNames.map(ScalaPredefModule .requiredMethodRef)
346
346
}
347
- def Predef_wrapArray ( implicit ctx : Context ) : Set [Symbol ] = Predef_wrapArrayR .map(_.symbol)
347
+ val Predef_wrapArray = new PerRun [collection. Set [Symbol ]]( implicit ctx => Predef_wrapArrayR .map(_.symbol) )
348
348
349
349
lazy val ScalaRuntimeModuleRef = ctx.requiredModuleRef(" scala.runtime.ScalaRunTime" )
350
350
def ScalaRuntimeModule (implicit ctx : Context ) = ScalaRuntimeModuleRef .symbol
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class ElimRepeated extends MiniPhase with InfoTransformer { thisPhase =>
94
94
private def seqToArray (tree : Tree , pt : Type )(implicit ctx : Context ): Tree = tree match {
95
95
case SeqLiteral (elems, elemtpt) =>
96
96
JavaSeqLiteral (elems, elemtpt)
97
- case app@ Apply (fun, args) if defn.Predef_wrapArray .contains(fun.symbol) => // rewrite a call to `wrapXArray(arr)` to `arr`
97
+ case app@ Apply (fun, args) if defn.Predef_wrapArray () .contains(fun.symbol) => // rewrite a call to `wrapXArray(arr)` to `arr`
98
98
args.head
99
99
case _ =>
100
100
val elemType = tree.tpe.elemType
You can’t perform that action at this time.
0 commit comments