Skip to content

Commit 3527136

Browse files
committed
fix: added changes :)
1 parent 4146fbd commit 3527136

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,13 +1333,8 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
13331333
EmptyTree
13341334

13351335
val setter = toSetter(lhsCore)
1336-
if setter.isEmpty then reassignmentToVal
1337-
else tryEither {
1338-
val assign = untpd.Apply(setter, tree.rhs :: Nil)
1339-
typed(assign, IgnoredProto(pt))
1340-
} {
1341-
(_, _) => reassignmentToVal
1342-
}
1336+
val assign = untpd.Apply(setter, tree.rhs :: Nil)
1337+
typed(assign, IgnoredProto(pt))
13431338
case _ => lhsCore.tpe match {
13441339
case ref: TermRef =>
13451340
val lhsVal = lhsCore.denot.suchThat(!_.is(Method))

0 commit comments

Comments
 (0)