From 97faee5a82b40b4c980c8cb222ff5ac4cb9083a4 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Thu, 27 Mar 2014 12:53:03 +0100 Subject: Rename methods on FreshContext to make mutation obvious And avoid name clashes --- src/dotty/tools/dotc/typer/ProtoTypes.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/typer/ProtoTypes.scala') diff --git a/src/dotty/tools/dotc/typer/ProtoTypes.scala b/src/dotty/tools/dotc/typer/ProtoTypes.scala index 16fcc9db7..16869454f 100644 --- a/src/dotty/tools/dotc/typer/ProtoTypes.scala +++ b/src/dotty/tools/dotc/typer/ProtoTypes.scala @@ -38,7 +38,7 @@ object ProtoTypes { /** Test compatibility after normalization in a fresh typerstate. */ def normalizedCompatible(tp: Type, pt: Type)(implicit ctx: Context) = { - val nestedCtx = ctx.fresh.withExploreTyperState + val nestedCtx = ctx.fresh.setExploreTyperState isCompatible(normalize(tp, pt)(nestedCtx), pt)(nestedCtx) } -- cgit v1.2.3