From 90b05b4554f888f458db886f2644445aedadc7fa Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 8 Mar 2015 21:08:41 +0100 Subject: Two more tweaks to make pickling invariant under printing 1) DefDefs with implicit method types generate implicit parameters 2) Super accessors are inserted after class parameters. With these changes files in core also print the same after pickling, with the exception of Types and TypeOps which have some spurious differences: Types are equal but appear in more simplified form after pickling. --- src/dotty/tools/dotc/typer/Namer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/typer') diff --git a/src/dotty/tools/dotc/typer/Namer.scala b/src/dotty/tools/dotc/typer/Namer.scala index 47375ba39..357860290 100644 --- a/src/dotty/tools/dotc/typer/Namer.scala +++ b/src/dotty/tools/dotc/typer/Namer.scala @@ -476,7 +476,7 @@ class Namer { typer: Typer => val (params, rest) = impl.body span { case td: TypeDef => td.mods is Param - case td: ValDef => td.mods is ParamAccessor + case vd: ValDef => vd.mods is ParamAccessor case _ => false } -- cgit v1.2.3