@@ -9,7 +9,7 @@ import dotty.tools.dotc.core.Constants._
99import dotty .tools .dotc .core .Contexts ._
1010import dotty .tools .dotc .core .Decorators ._
1111import dotty .tools .dotc .core .Flags ._
12- import dotty .tools .dotc .core .NameKinds .{UniqueName , PatMatQuoteTypeEv }
12+ import dotty .tools .dotc .core .NameKinds .{UniqueName , PatMatVarName }
1313import dotty .tools .dotc .core .Names ._
1414import dotty .tools .dotc .core .StagingContext ._
1515import dotty .tools .dotc .core .StdNames ._
@@ -158,7 +158,7 @@ trait QuotesAndSplices {
158158 if (ctx.mode.is(Mode .QuotedPattern )) spliceOwner(ctx.outer) else ctx.owner
159159 val (name, expr) = tree.expr match {
160160 case Ident (name) =>
161- val nameOfSyntheticGiven = PatMatQuoteTypeEv .fresh()
161+ val nameOfSyntheticGiven = PatMatVarName .fresh()
162162 (name.toTypeName, untpd.cpy.Ident (tree.expr)(nameOfSyntheticGiven))
163163 case expr =>
164164 report.error(" expected a name binding" , expr.srcPos)
@@ -272,7 +272,7 @@ trait QuotesAndSplices {
272272 tree
273273 case tdef : TypeDef =>
274274 if tdef.symbol.hasAnnotation(defn.InternalQuotedPatterns_patternTypeAnnot ) then
275- transformTypeBindingTypeDef(PatMatQuoteTypeEv .fresh(), tdef, typePatBuf)
275+ transformTypeBindingTypeDef(PatMatVarName .fresh(), tdef, typePatBuf)
276276 else if tdef.symbol.isClass then
277277 val kind = if tdef.symbol.is(Module ) then " objects" else " classes"
278278 report.error(" Implementation restriction: cannot match " + kind, tree.srcPos)
0 commit comments