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