File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
compiler/src/dotty/tools/dotc Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ class Definitions {
357
357
@ tu lazy val ScalaRuntimeModule : Symbol = ctx.requiredModule(" scala.runtime.ScalaRunTime" )
358
358
def runtimeMethodRef (name : PreName ): TermRef = ScalaRuntimeModule .requiredMethodRef(name)
359
359
def ScalaRuntime_drop : Symbol = runtimeMethodRef(nme.drop).symbol
360
- @ tu lazy val ScalaRuntime__hashCode : Symbol = runtimeMethodRef( " _hashCode " ).symbol
360
+ @ tu lazy val ScalaRuntime__hashCode : Symbol = ScalaRuntimeModule .requiredMethod(nme._hashCode_)
361
361
362
362
@ tu lazy val BoxesRunTimeModule : Symbol = ctx.requiredModule(" scala.runtime.BoxesRunTime" )
363
363
@ tu lazy val ScalaStaticsModule : Symbol = ctx.requiredModule(" scala.runtime.Statics" )
Original file line number Diff line number Diff line change @@ -449,6 +449,7 @@ object StdNames {
449
449
val getOrElse : N = " getOrElse"
450
450
val hasNext : N = " hasNext"
451
451
val hashCode_ : N = " hashCode"
452
+ val _hashCode_ : N = " _hashCode"
452
453
val hash_ : N = " hash"
453
454
val head : N = " head"
454
455
val higherKinds : N = " higherKinds"
Original file line number Diff line number Diff line change @@ -258,10 +258,10 @@ class SyntheticMembers(thisPhase: DenotTransformer) {
258
258
def chooseHashcode (implicit ctx : Context ) = {
259
259
if (clazz.is(ModuleClass ))
260
260
Literal (Constant (clazz.name.stripModuleClassSuffix.toString.hashCode))
261
- else if (accessors ` exists` (_.info.finalResultType.classSymbol.isPrimitiveValueClass))
261
+ else if (accessors. exists(_.info.finalResultType.classSymbol.isPrimitiveValueClass))
262
262
caseHashCodeBody
263
263
else
264
- ref(defn.ScalaRuntimeModule ).select(defn. ScalaRuntime__hashCode ).appliedTo(This (clazz))
264
+ ref(defn.ScalaRuntime__hashCode ).appliedTo(This (clazz))
265
265
}
266
266
267
267
/** The class
You can’t perform that action at this time.
0 commit comments