diff options
author | Martin Odersky <odersky@gmail.com> | 2016-10-17 11:22:03 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-10-17 11:22:03 +0200 |
commit | 531f3c42c40ea05b412cbbdbcc020264dd2a4375 (patch) | |
tree | 2d3d0a30c4e4e992118947672c2bc266519b7164 | |
parent | 1ad3803e3610ee249a0b95016639d97c85817e69 (diff) | |
download | dotty-531f3c42c40ea05b412cbbdbcc020264dd2a4375.tar.gz dotty-531f3c42c40ea05b412cbbdbcc020264dd2a4375.tar.bz2 dotty-531f3c42c40ea05b412cbbdbcc020264dd2a4375.zip |
Fix pickling of self type position
Was: position of self def, now: position of tpt in self def.
-rw-r--r-- | src/dotty/tools/dotc/core/tasty/TreePickler.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/tasty/TreePickler.scala b/src/dotty/tools/dotc/core/tasty/TreePickler.scala index 18920ec30..a5f421888 100644 --- a/src/dotty/tools/dotc/core/tasty/TreePickler.scala +++ b/src/dotty/tools/dotc/core/tasty/TreePickler.scala @@ -496,7 +496,7 @@ class TreePickler(pickler: TastyPickler) { if ((selfInfo ne NoType) || !tree.self.isEmpty) { writeByte(SELFDEF) pickleName(tree.self.name) - registerTreeAddr(tree.self) + if (!tree.self.isEmpty) registerTreeAddr(tree.self.tpt) pickleType { cinfo.selfInfo match { case sym: Symbol => sym.info |