Skip to content

Commit dc29d14

Browse files
committed
Revert some changes
1 parent 7e3dd15 commit dc29d14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ class Typer extends Namer
13891389
def typedArg(arg: untpd.Tree, tparam: ParamInfo) = {
13901390
def tparamBounds = tparam.paramInfoAsSeenFrom(tpt1.tpe.appliedTo(tparams.map(_ => TypeBounds.empty)))
13911391
val (desugaredArg, argPt) =
1392-
if ctx.mode.is(Mode.Pattern) || ctx.mode.is(Mode.QuotedPattern) then
1392+
if (ctx.mode is Mode.Pattern)
13931393
(if (untpd.isVarPattern(arg)) desugar.patternVar(arg) else arg, tparamBounds)
13941394
else
13951395
(arg, WildcardType)

0 commit comments

Comments
 (0)