Skip to content

Commit 39529db

Browse files
committed
Remove unnecessary symbol check
1 parent 5be95e1 commit 39529db

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

library/src/scala/internal/quoted/Matcher.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,11 @@ private[quoted] object Matcher {
320320
matched
321321

322322
/* Match application */
323-
// TODO may not need to check the symbol (done in fn1 =?= fn2)
324-
case (Apply(fn1, args1), Apply(fn2, args2)) if fn1.symbol == fn2.symbol || summon[Env].get(fn1.symbol).contains(fn2.symbol) =>
323+
case (Apply(fn1, args1), Apply(fn2, args2)) =>
325324
fn1 =?= fn2 &&& args1 =?= args2
326325

327326
/* Match type application */
328-
// TODO may not need to check the symbol (done in fn1 =?= fn2)
329-
case (TypeApply(fn1, args1), TypeApply(fn2, args2)) if fn1.symbol == fn2.symbol || summon[Env].get(fn1.symbol).contains(fn2.symbol) =>
327+
case (TypeApply(fn1, args1), TypeApply(fn2, args2)) =>
330328
fn1 =?= fn2 &&& args1 =?= args2
331329

332330
case (Block(stats1, expr1), Block(binding :: stats2, expr2)) if isTypeBinding(binding) =>

0 commit comments

Comments
 (0)