From 5fe6f54de36224974bdd3a9169f899f6df25971e Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 17 Mar 2017 15:08:59 +0100 Subject: Eliminate ParamType Replace with ParamRef --- compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/src/dotty/tools/dotc/core/tasty') diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala index 0b361f1f4..d712b913b 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala @@ -260,14 +260,14 @@ class TreePickler(pickler: TastyPickler) { writeByte(METHODtype) pickleMethodic(tpe.resultType, tpe.paramNames, tpe.paramInfos) case tpe: TypeParamRef => - if (!pickleParamType(tpe)) + if (!pickleParamRef(tpe)) // TODO figure out why this case arises in e.g. pickling AbstractFileReader. ctx.typerState.constraint.entry(tpe) match { case TypeBounds(lo, hi) if lo eq hi => pickleNewType(lo, richTypes) case _ => assert(false, s"orphan poly parameter: $tpe") } case tpe: TermParamRef => - assert(pickleParamType(tpe), s"orphan method parameter: $tpe") + assert(pickleParamRef(tpe), s"orphan method parameter: $tpe") case tpe: LazyRef => pickleType(tpe.ref) }} catch { @@ -289,7 +289,7 @@ class TreePickler(pickler: TastyPickler) { } } - def pickleParamType(tpe: ParamType)(implicit ctx: Context): Boolean = { + def pickleParamRef(tpe: ParamRef)(implicit ctx: Context): Boolean = { val binder = pickledTypes.get(tpe.binder) val pickled = binder != null if (pickled) { -- cgit v1.2.3