diff options
author | Martin Odersky <odersky@gmail.com> | 2015-02-27 16:51:10 +0100 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-03-18 11:14:12 +0100 |
commit | 60e520c73d20526f2cf21c90088480f0a971fbc3 (patch) | |
tree | 4b942de8a941491ef953279f9969790030f9d8a9 /src/dotty/tools/dotc/core/pickling/TreePickler.scala | |
parent | a0c2d6c5ba6d190d183babb3941b3607b112b8fc (diff) | |
download | dotty-60e520c73d20526f2cf21c90088480f0a971fbc3.tar.gz dotty-60e520c73d20526f2cf21c90088480f0a971fbc3.tar.bz2 dotty-60e520c73d20526f2cf21c90088480f0a971fbc3.zip |
Pickle trait flag and compute PureInterface and NoInits in unpickler.
1) Trait was missing, needs to be serialized.
2) The other two flags are not serialized, need to be reconstituted on
unpickling.
Diffstat (limited to 'src/dotty/tools/dotc/core/pickling/TreePickler.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/pickling/TreePickler.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/TreePickler.scala b/src/dotty/tools/dotc/core/pickling/TreePickler.scala index 16c1ebd02..3212894c4 100644 --- a/src/dotty/tools/dotc/core/pickling/TreePickler.scala +++ b/src/dotty/tools/dotc/core/pickling/TreePickler.scala @@ -462,6 +462,7 @@ class TreePickler(pickler: TastyPickler) { } else { if (flags is Sealed) writeByte(SEALED) if (flags is Abstract) writeByte(ABSTRACT) + if (flags is Trait) writeByte(TRAIT) if (flags is Covariant) writeByte(COVARIANT) if (flags is Contravariant) writeByte(CONTRAVARIANT) } |