Skip to content

Commit b9a82f2

Browse files
committed
Extract base types from prototypes
1 parent 30aaac5 commit b9a82f2

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
@@ -315,7 +315,7 @@ trait QuotesAndSplices {
315315
ctx.error(missingArgMsg(qctx, defn.QuoteContextClass.typeRef, ""), ctx.source.atSpan(tree.span))
316316

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

0 commit comments

Comments
 (0)