Skip to content

Commit 5be95e1

Browse files
committed
Simplify quoted reference match
1 parent c8e593e commit 5be95e1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -316,12 +316,7 @@ private[quoted] object Matcher {
316316
qual1 =?= qual2
317317

318318
/* Match reference */
319-
// TODO could be subsumed by the next case
320-
case (Ident(_), Ident(_)) if scrutinee.symbol == pattern.symbol || summon[Env].get(scrutinee.symbol).contains(pattern.symbol) =>
321-
matched
322-
323-
/* Match reference */
324-
case (_: Ref, _: Ref) if scrutinee.symbol == pattern.symbol =>
319+
case (_: Ref, _: Ref) if scrutinee.symbol == pattern.symbol || summon[Env].get(scrutinee.symbol).contains(pattern.symbol) =>
325320
matched
326321

327322
/* Match application */

0 commit comments

Comments
 (0)