We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3adfcea commit 04d0dc9Copy full SHA for 04d0dc9
compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala
@@ -171,8 +171,7 @@ trait BCodeSkelBuilder extends BCodeHelpers {
171
cpy.TypeDef(cd0)(rhs = impl2)
172
} else cd0
173
174
- val methodSymbols = for (f <- cd.symbol.info.decls.toList if f.is(Method) && f.isTerm && !f.is(Module)) yield f
175
- val hasStaticCtor = methodSymbols exists (_.isStaticConstructor)
+ val hasStaticCtor = isCZStaticModule || cd.symbol.info.decls.exists(_.isStaticConstructor)
176
if (!hasStaticCtor && isCZParcelable) fabricateStaticInitAndroid()
177
178
val optSerial: Option[Long] =
0 commit comments