Skip to content

Commit d907f26

Browse files
committed
Bugfix for superaccessors
Threw away list of constructed statements.
1 parent 936e83f commit d907f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotty/tools/dotc/transform/SuperAccessors.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class SuperAccessors extends MacroTransform with IdentityDenotTransformer { this
295295
val body1 = forwardParamAccessors(transformStats(impl.body, tree.symbol))
296296
accDefs -= currentClass
297297
ownStats ++= body1
298-
cpy.Template(impl)(body = body1)
298+
cpy.Template(impl)(body = ownStats.toList)
299299
}
300300
transformTemplate
301301

0 commit comments

Comments
 (0)