Skip to content

Commit b5e560b

Browse files
lolgabWojciechMazur
authored andcommitted
Avoid creating a List to initialize fields
[Cherry-picked c3377d4]
1 parent 473656b commit b5e560b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: compiler/src/dotty/tools/dotc/core/Definitions.scala

+4-2
Original file line numberDiff line numberDiff line change
@@ -2130,8 +2130,10 @@ class Definitions {
21302130
this.initCtx = ctx
21312131
if (!isInitialized) {
21322132
// force initialization of every symbol that is synthesized or hijacked by the compiler
2133-
val forced =
2134-
syntheticCoreClasses ++ syntheticCoreMethods ++ ScalaValueClasses() :+ JavaEnumClass
2133+
syntheticCoreClasses
2134+
syntheticCoreMethods
2135+
JavaEnumClass
2136+
// end force initialization
21352137
isInitialized = true
21362138
}
21372139
addSyntheticSymbolsComments

0 commit comments

Comments
 (0)