File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1386,10 +1386,9 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
1386
1386
val u = ensureAccessible(t, isSuperSelection(core), lhs.srcPos)
1387
1387
val v = untpd.rename(core, setterName).withType(u)
1388
1388
PartialAssignment (SimpleLValue (v)) { (l, r) =>
1389
- untpd.Apply (untpd.TypedSplice (l.expression), List (r))
1390
1389
// QUESTION: Why do we need the `typedUnadapted(s, WildcardType, locked)`?
1391
- // val s = untpd.Apply(untpd.TypedSplice(lvalue .expression), List(rhs ))
1392
- // typedUnadapted(s, WildcardType, locked)
1390
+ val s = untpd.Apply (untpd.TypedSplice (l .expression), List (r ))
1391
+ untpd. TypedSplice ( typedUnadapted(s, WildcardType , locked) )
1393
1392
}
1394
1393
case _ =>
1395
1394
reassignmentToVal()
You can’t perform that action at this time.
0 commit comments