Skip to content

Commit c3377d4

Browse files
committed
Avoid creating a List to initialize fields
1 parent 0c04c2e commit c3377d4

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
@@ -2131,8 +2131,10 @@ class Definitions {
21312131
this.initCtx = ctx
21322132
if (!isInitialized) {
21332133
// force initialization of every symbol that is synthesized or hijacked by the compiler
2134-
val forced =
2135-
syntheticCoreClasses ++ syntheticCoreMethods ++ ScalaValueClasses() :+ JavaEnumClass
2134+
syntheticCoreClasses
2135+
syntheticCoreMethods
2136+
JavaEnumClass
2137+
// end force initialization
21362138
isInitialized = true
21372139
}
21382140
addSyntheticSymbolsComments

0 commit comments

Comments
 (0)