Skip to content

Commit

Permalink
Avoid creating a List to initialize fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lolgab committed Sep 19, 2023
1 parent 0c04c2e commit c3377d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler/src/dotty/tools/dotc/core/Definitions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2131,8 +2131,10 @@ class Definitions {
this.initCtx = ctx
if (!isInitialized) {
// force initialization of every symbol that is synthesized or hijacked by the compiler
val forced =
syntheticCoreClasses ++ syntheticCoreMethods ++ ScalaValueClasses() :+ JavaEnumClass
syntheticCoreClasses
syntheticCoreMethods
JavaEnumClass
// end force initialization
isInitialized = true
}
addSyntheticSymbolsComments
Expand Down

0 comments on commit c3377d4

Please sign in to comment.