File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
library/src/scala/internal/quoted Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ import scala.quoted._
67
67
* '{ while e0 do e1 } =?= '{ while p0 do p1 } ===> '{e0} =?= '{p0} &&& '{e1} =?= '{p1}
68
68
*
69
69
* /* Match assign */
70
- * '{ e0 = e1 } =?= '{ p0 = p1 } && '{e0} =?= '{p0} ===> '{e1} =?= '{p1}
70
+ * '{ e0 = e1 } =?= '{ p0 = p1 } ==> '{e0} =?= '{p0} &&& '{e1} =?= '{p1}
71
71
*
72
72
* /* Match new */
73
73
* '{ new T } =?= '{ new T } ===> matched
@@ -365,11 +365,7 @@ private[quoted] object Matcher {
365
365
366
366
/* Match assign */
367
367
case (Assign (lhs1, rhs1), Assign (lhs2, rhs2)) =>
368
- val lhsMatch =
369
- if ((lhs1 =?= lhs2).isMatch) matched
370
- else notMatched
371
- // TODO lhs1 =?= lhs2 &&& rhs1 =?= rhs2
372
- lhsMatch &&& rhs1 =?= rhs2
368
+ lhs1 =?= lhs2 &&& rhs1 =?= rhs2
373
369
374
370
/* Match new */
375
371
case (New (tpt1), New (tpt2)) if tpt1.tpe.typeSymbol == tpt2.tpe.typeSymbol =>
You can’t perform that action at this time.
0 commit comments