Skip to content

Commit c971de7

Browse files
committed
Only deugar the ident for term qualifiers
1 parent a575a08 commit c971de7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ private[quoted] object Matcher {
276276
ref match
277277
case Select(qual1, _) => qual1 =?= qual2
278278
case ref: Ident =>
279-
Ref.desugarIdent(ref) match
280-
case Select(qual1, _) => qual1 =?= qual2
279+
ref.tpe match
280+
case TermRef(qual: TermRef, _) => Ref.term(qual) =?= qual2
281281
case _ => matched
282282

283283
/* Match reference */

0 commit comments

Comments
 (0)