Skip to content

Commit 076d973

Browse files
Apply suggestions from code review
Co-authored-by: Dale Wijnand <dale.wijnand@gmail.com>
1 parent 240ba95 commit 076d973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ trait QuotesAndSplices {
403403
* ): Expr[S & List[t] @unchecked] => ...
404404
* ```
405405
*
406-
* For a scrutinee of type `S`, the `: Expr[S & List[t] @unchecked]` tels the pattern that if the pattern matched the the bound
406+
* For a scrutinee of type `S`, the `: Expr[S & List[t] @unchecked]` tells the pattern that if the pattern matched the bound
407407
* scrutinee `x @ '{..}` is of type `Expr[S & List[t] @unchecked]`.
408408
*/
409409
private def typedQuotePattern(tree: untpd.Quote, pt: Type, qctx: Tree)(using Context): Tree = {
@@ -478,6 +478,6 @@ trait QuotesAndSplices {
478478
implicits = quotedPattern :: Nil,
479479
patterns = splicePat :: Nil),
480480
TypeTree(quoteClass.typeRef.appliedTo(replaceBindings(quoted1.tpe) & quotedPt))
481-
).annotated(New(ref(defn.UncheckedAnnot.typeRef)))
481+
).annotated(New(defn.UncheckedAnnot.typeRef, Nil))
482482
}
483483
}

0 commit comments

Comments
 (0)