Skip to content

Commit 5c55146

Browse files
Apply suggestions from code review
Co-Authored-By: Fengyun Liu <[email protected]>
1 parent 51a15d6 commit 5c55146

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ trait QuotesAndSplices {
9090
// * Provide meaningful names for QuoteContext synthesized by within `${ ... }`
9191
// * TODO preserve QuoteContext.tasty path dependent type (see comment below and #8045)
9292
val qctxParamName = NameKinds.UniqueName.fresh(s"qctx${level - 1}_".toTermName)
93-
// TODO: Refine QuoteContext with the tasty context that the quote reacived
94-
// If encoloseing quote recieves `qctx` then this type should be `QuoteContext { val tasty: qxtx.tasty.type }`
93+
// TODO: Refine QuoteContext with the tasty context that the quote received
94+
// If encoloseing quote receives `qctx` then this type should be `QuoteContext { val tasty: qxtx.tasty.type }`
9595
val qctxParamTpt = untpd.TypedSplice(TypeTree(defn.QuoteContextClass.typeRef))
9696
val qctxParam = untpd.makeParameter(qctxParamName, qctxParamTpt, untpd.Modifiers(Given))
9797
val expr = untpd.Function(List(qctxParam), tree.expr).withSpan(tree.span)
@@ -392,4 +392,3 @@ trait QuotesAndSplices {
392392
proto = quoteClass.typeRef.appliedTo(replaceBindings(quoted1.tpe) & quotedPt))
393393
}
394394
}
395-

0 commit comments

Comments
 (0)