Skip to content

Commit

Permalink
fix: added changes :)
Browse files Browse the repository at this point in the history
  • Loading branch information
iusildra committed May 21, 2024
1 parent 4146fbd commit 3527136
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions compiler/src/dotty/tools/dotc/typer/Typer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1333,13 +1333,8 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
EmptyTree

val setter = toSetter(lhsCore)
if setter.isEmpty then reassignmentToVal
else tryEither {
val assign = untpd.Apply(setter, tree.rhs :: Nil)
typed(assign, IgnoredProto(pt))
} {
(_, _) => reassignmentToVal
}
val assign = untpd.Apply(setter, tree.rhs :: Nil)
typed(assign, IgnoredProto(pt))
case _ => lhsCore.tpe match {
case ref: TermRef =>
val lhsVal = lhsCore.denot.suchThat(!_.is(Method))
Expand Down

0 comments on commit 3527136

Please sign in to comment.