Skip to content

Commit 84e4a86

Browse files
committed
Use patternHole symbol
1 parent 0ecb050 commit 84e4a86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ private[quoted] object Matcher {
152152
matched(scrutinee.seal)
153153

154154
// Matches an open term and wraps it into a lambda that provides the free variables
155-
case (scrutinee, pattern @ Apply(Select(TypeApply(Ident("patternHole"), List(Inferred())), "apply"), args0 @ IdentArgs(args))) =>
155+
case (scrutinee, pattern @ Apply(Select(TypeApply(patternHole, List(Inferred())), "apply"), args0 @ IdentArgs(args)))
156+
if patternHole.symbol == internal.Definitions_InternalQuoted_patternHole =>
156157
def bodyFn(lambdaArgs: List[Tree]): Tree = {
157158
val argsMap = args.map(_.symbol).zip(lambdaArgs.asInstanceOf[List[Term]]).toMap
158159
new TreeMap {

0 commit comments

Comments
 (0)