Skip to content

Commit 1a4106f

Browse files
Merge pull request #10502 from dotty-staging/fix-old-quoted-type-error-message
Update error message for use of old quoted.Type API
2 parents e593e85 + 4783b5c commit 1a4106f

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
@@ -60,7 +60,7 @@ trait QuotesAndSplices {
6060
if ctx.mode.is(Mode.Pattern) then
6161
typedQuotePattern(tree, pt, qctx)
6262
else if tree.quoted.isType then
63-
val msg = em"Consider using canonical type constructor scala.quoted.Type[${tree.quoted}] instead"
63+
val msg = em"Consider using canonical type constructor scala.quoted.Type.of[${tree.quoted}] instead"
6464
if sourceVersion.isAtLeast(`3.1-migration`) then report.error(msg, tree.srcPos)
6565
else report.warning(msg, tree.srcPos)
6666
typedTypeApply(untpd.TypeApply(untpd.ref(defn.QuotedTypeModule_of.termRef), tree.quoted :: Nil), pt)(using quoteContext).select(nme.apply).appliedTo(qctx)

0 commit comments

Comments
 (0)