Skip to content

Commit 33a93a6

Browse files
committed
Use different names for quote and type quote methods
Otherwise unpickler gets confused when it tries to resolve references to these methods.
1 parent 833775f commit 33a93a6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/core/Definitions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ class Definitions {
311311
useCompleter = true)
312312

313313
/** Method representing a type quote */
314-
lazy val typeQuoteMethod = enterPolyMethod(OpsPackageClass, nme.QUOTE, 1,
314+
lazy val typeQuoteMethod = enterPolyMethod(OpsPackageClass, nme.TYPE_QUOTE, 1,
315315
pt => QuotedTypeType.appliedTo(pt.paramRefs(0) :: Nil),
316316
useCompleter = true)
317317

compiler/src/dotty/tools/dotc/core/StdNames.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ object StdNames {
144144
val COMPANION_MODULE_METHOD: N = "companion$module"
145145
val COMPANION_CLASS_METHOD: N = "companion$class"
146146
val QUOTE: N = "'"
147+
val TYPE_QUOTE: N = "type_'"
147148
val TRAIT_SETTER_SEPARATOR: N = str.TRAIT_SETTER_SEPARATOR
148149

149150
// value types (and AnyRef) are all used as terms as well

0 commit comments

Comments
 (0)