Skip to content

Commit a4df497

Browse files
committed
Extract base types from prototypes
1 parent f7598a6 commit a4df497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ trait QuotesAndSplices {
316316
ctx.error(missingArgMsg(qctx, defn.QuoteContextClass.typeRef, ""), ctx.source.atSpan(tree.span))
317317

318318
val quoted = tree.quoted
319-
val exprPt = pt.baseType(defn.QuotedExprClass)
319+
val exprPt = pt.baseType(if quoted.isType then defn.QuotedTypeClass else defn.QuotedExprClass)
320320
val quotedPt = exprPt.argInfos.headOption match {
321321
case Some(argPt: ValueType) => argPt // excludes TypeBounds
322322
case _ => defn.AnyType

0 commit comments

Comments
 (0)