We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e593e85 + 4783b5c commit 1a4106fCopy full SHA for 1a4106f
compiler/src/dotty/tools/dotc/typer/QuotesAndSplices.scala
@@ -60,7 +60,7 @@ trait QuotesAndSplices {
60
if ctx.mode.is(Mode.Pattern) then
61
typedQuotePattern(tree, pt, qctx)
62
else if tree.quoted.isType then
63
- val msg = em"Consider using canonical type constructor scala.quoted.Type[${tree.quoted}] instead"
+ val msg = em"Consider using canonical type constructor scala.quoted.Type.of[${tree.quoted}] instead"
64
if sourceVersion.isAtLeast(`3.1-migration`) then report.error(msg, tree.srcPos)
65
else report.warning(msg, tree.srcPos)
66
typedTypeApply(untpd.TypeApply(untpd.ref(defn.QuotedTypeModule_of.termRef), tree.quoted :: Nil), pt)(using quoteContext).select(nme.apply).appliedTo(qctx)
0 commit comments