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 5290620 commit c452fbdCopy full SHA for c452fbd
compiler/src/dotty/tools/dotc/transform/localopt/InlineLocalObjects.scala
@@ -89,7 +89,7 @@ class InlineLocalObjects(val simplifyPhase: Simplify) extends Optimisation {
89
initNewFieldsMapping();
90
{
91
case t @ NewCaseClassValDef(fun, args) if newFieldsMapping.contains(t.symbol) =>
92
- val newFields = newFieldsMapping(t.symbol).values.toList
+ val newFields = newFieldsMapping(t.symbol).values.toList.sortBy(_.name.show)
93
val newFieldsDefs = newFields.zip(args).map { case (nf, arg) =>
94
val rhs = arg.changeOwnerAfter(t.symbol, nf.symbol, simplifyPhase)
95
ValDef(nf.asTerm, rhs)
0 commit comments