Skip to content

Commit 55b5e62

Browse files
committed
Don't force quote methods
1 parent 21a5b72 commit 55b5e62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,9 @@ class Definitions {
10971097

10981098
/** Lists core methods that don't have underlying bytecode, but are synthesized on-the-fly in every reflection universe */
10991099
lazy val syntheticCoreMethods =
1100-
AnyMethods ++ ObjectMethods ++ List(String_+, throwMethod, quoteMethod, typeQuoteMethod)
1100+
AnyMethods ++ ObjectMethods ++ List(String_+, throwMethod
1101+
//, quoteMethod, typeQuoteMethod // we omit these because they force Expr and Type too early
1102+
)
11011103

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

@@ -1112,8 +1114,6 @@ class Definitions {
11121114
ScalaPackageClass.enter(m)
11131115

11141116
// force initialization of every symbol that is synthesized or hijacked by the compiler
1115-
// Placed here so that an abort with a MissingCoreLibraryException because scalaShadowing
1116-
// is not found comes before any additional errors are reported.
11171117
val forced = syntheticCoreClasses ++ syntheticCoreMethods ++ ScalaValueClasses()
11181118

11191119
_isInitialized = true

0 commit comments

Comments
 (0)