Skip to content

Commit 644e068

Browse files
committed
Merge pull request #726 from dotty-staging/fix-713
Fix #713. Put tasty attribute on mirror class of modules.
2 parents 41c484f + 8419e56 commit 644e068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/backend/jvm/GenBCode.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
179179
for (pickler <- ctx.compilationUnit.picklers.get(claszSymbol.asClass)) {
180180
val binary = pickler.assembleParts()
181181
val dataAttr = new CustomAttr(nme.TASTYATTR.toString, binary)
182-
plainC.visitAttribute(dataAttr)
182+
(if (mirrorC ne null) mirrorC else plainC).visitAttribute(dataAttr)
183183
}
184184

185185
// -------------- bean info class, if needed --------------

0 commit comments

Comments
 (0)