@@ -9,7 +9,7 @@ import dotty.tools.dotc.core.Constants._
9
9
import dotty .tools .dotc .core .Contexts ._
10
10
import dotty .tools .dotc .core .Decorators ._
11
11
import dotty .tools .dotc .core .Flags ._
12
- import dotty .tools .dotc .core .NameKinds .{UniqueName , PatMatQuoteTypeEv }
12
+ import dotty .tools .dotc .core .NameKinds .{UniqueName , PatMatVarName }
13
13
import dotty .tools .dotc .core .Names ._
14
14
import dotty .tools .dotc .core .StagingContext ._
15
15
import dotty .tools .dotc .core .StdNames ._
@@ -158,7 +158,7 @@ trait QuotesAndSplices {
158
158
if (ctx.mode.is(Mode .QuotedPattern )) spliceOwner(ctx.outer) else ctx.owner
159
159
val (name, expr) = tree.expr match {
160
160
case Ident (name) =>
161
- val nameOfSyntheticGiven = PatMatQuoteTypeEv .fresh()
161
+ val nameOfSyntheticGiven = PatMatVarName .fresh()
162
162
(name.toTypeName, untpd.cpy.Ident (tree.expr)(nameOfSyntheticGiven))
163
163
case expr =>
164
164
report.error(" expected a name binding" , expr.srcPos)
@@ -272,7 +272,7 @@ trait QuotesAndSplices {
272
272
tree
273
273
case tdef : TypeDef =>
274
274
if tdef.symbol.hasAnnotation(defn.InternalQuotedPatterns_patternTypeAnnot ) then
275
- transformTypeBindingTypeDef(PatMatQuoteTypeEv .fresh(), tdef, typePatBuf)
275
+ transformTypeBindingTypeDef(PatMatVarName .fresh(), tdef, typePatBuf)
276
276
else if tdef.symbol.isClass then
277
277
val kind = if tdef.symbol.is(Module ) then " objects" else " classes"
278
278
report.error(" Implementation restriction: cannot match " + kind, tree.srcPos)
0 commit comments