Skip to content

Commit 1112b5e

Browse files
committed
Enter implicit scrutinee
... so that it can be found in FromTasty compilatiom
1 parent 5d84486 commit 1112b5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ class Definitions {
334334
lazy val RuntimeNullModuleRef = ctx.requiredModuleRef("scala.runtime.Null")
335335

336336
lazy val ImplicitScrutineeTypeSym =
337-
newSymbol(ScalaPackageClass, tpnme.IMPLICITkw, EmptyFlags, TypeBounds.empty)
337+
newSymbol(ScalaPackageClass, tpnme.IMPLICITkw, EmptyFlags, TypeBounds.empty).entered
338338
def ImplicitScrutineeTypeRef: TypeRef = ImplicitScrutineeTypeSym.typeRef
339339

340340
lazy val ScalaPredefModuleRef = ctx.requiredModuleRef("scala.Predef")
@@ -1217,7 +1217,7 @@ class Definitions {
12171217

12181218
/** Lists core methods that don't have underlying bytecode, but are synthesized on-the-fly in every reflection universe */
12191219
lazy val syntheticCoreMethods =
1220-
AnyMethods ++ ObjectMethods ++ List(String_+, throwMethod)
1220+
AnyMethods ++ ObjectMethods ++ List(String_+, throwMethod, ImplicitScrutineeTypeSym)
12211221

12221222
lazy val reservedScalaClassNames: Set[Name] = syntheticScalaClasses.map(_.name).toSet
12231223

0 commit comments

Comments
 (0)