Skip to content

Commit 0af8809

Browse files
Cleanup quote pattern prototype (#17945)
The `quotedPt` is used when typing the body of the quoted type. It does not need to appear in the prototype of the quote pattern `unapply`.
2 parents 8cff236 + 3c07379 commit 0af8809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/QuotesAndSplices.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,6 @@ trait QuotesAndSplices {
443443
fun = unapplyFun.appliedToTypeTrees(typeBindingsTuple :: TypeTree(patType) :: Nil),
444444
implicits = quotedPattern :: Nil,
445445
patterns = splicePat :: Nil,
446-
proto = quoteClass.typeRef.appliedTo(replaceBindings(quoted1.tpe) & quotedPt))
446+
proto = quoteClass.typeRef.appliedTo(replaceBindings(quoted1.tpe)))
447447
}
448448
}

0 commit comments

Comments
 (0)