File tree 1 file changed +8
-2
lines changed
src/dotty/tools/dotc/core/pickling 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ class ClassfileParser(
92
92
if (c != classRoot.symbol) mismatchError(c)
93
93
}
94
94
95
+ if (classRoot.symbol.id == 4812 ) {
96
+ println(" bar" )
97
+ }
98
+
95
99
addEnclosingTParams()
96
100
97
101
if (unpickleOrParseInnerClasses()) return
@@ -130,10 +134,12 @@ class ClassfileParser(
130
134
for (i <- 0 until in.nextChar) parseMember(method = true )
131
135
classInfo = parseAttributes(classRoot.symbol, classInfo)
132
136
if (isAnnotation) addAnnotationConstructor(classInfo)
137
+
133
138
val companionClassMethod = ctx.synthesizeCompanionMethod(nme.COMPANION_CLASS_METHOD , classRoot, moduleRoot)
134
139
if (companionClassMethod.exists) companionClassMethod.entered
135
-
136
-
140
+ val companionModuleMethod = ctx.synthesizeCompanionMethod(nme.COMPANION_MODULE_METHOD , moduleRoot, classRoot)
141
+ if (companionModuleMethod.exists) companionModuleMethod.entered
142
+
137
143
setClassInfo(classRoot, classInfo)
138
144
setClassInfo(moduleRoot, staticInfo)
139
145
}
You can’t perform that action at this time.
0 commit comments