From bbc4f7a3234937e5f79e8310e6fff2f9b4af0f98 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 29 Jan 2013 09:44:37 +0100 Subject: New Context architecture based on cloning --- src/dotty/tools/dotc/core/Types.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dotty/tools/dotc/core/Types.scala') diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala index dcef49d0d..dfa09a4c5 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -508,7 +508,7 @@ object Types { def unique[T <: Type](tp: T)(implicit ctx: Context): T = { if (tp.hash == NotCached) tp - else ctx.root.uniques.findEntryOrUpdate(tp).asInstanceOf[T] + else ctx.uniques.findEntryOrUpdate(tp).asInstanceOf[T] } /** A marker trait for type proxies. @@ -583,7 +583,7 @@ object Types { throw new MalformedType(prefix, d.symbol) d } else {// name has changed; try load in earlier phase and make current - denot(ctx.withPhase(ctx.phaseId - 1)).current + denot(ctx.fresh.withPhase(ctx.phaseId - 1)).current } } } -- cgit v1.2.3