Skip to content

Commit 908603b

Browse files
committed
Constructors: fields should be set before super constructor is invoked.
1 parent eec8191 commit 908603b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class Constructors extends MiniPhaseTransform with SymTransformer { thisTransfor
245245

246246
cpy.Template(tree)(
247247
constr = cpy.DefDef(constr)(
248-
rhs = Block(mappedSuperCalls ::: copyParams ::: followConstrStats, unitLiteral)),
248+
rhs = Block(copyParams ::: mappedSuperCalls ::: followConstrStats, unitLiteral)),
249249
body = clsStats.toList)
250250
}
251251
}

0 commit comments

Comments
 (0)