Skip to content

Commit e5ed578

Browse files
lolgabWojciechMazur
authored andcommitted
Avoid creating a List to initialize fields
[Cherry-picked c3377d4]
1 parent 5a40ae6 commit e5ed578

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -2119,8 +2119,10 @@ class Definitions {
21192119
this.initCtx = ctx
21202120
if (!isInitialized) {
21212121
// force initialization of every symbol that is synthesized or hijacked by the compiler
2122-
val forced =
2123-
syntheticCoreClasses ++ syntheticCoreMethods ++ ScalaValueClasses() :+ JavaEnumClass
2122+
syntheticCoreClasses
2123+
syntheticCoreMethods
2124+
JavaEnumClass
2125+
// end force initialization
21242126
isInitialized = true
21252127
}
21262128
addSyntheticSymbolsComments

0 commit comments

Comments
 (0)