aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-04-04 19:57:57 +0200
committerMartin Odersky <odersky@gmail.com>2015-04-07 23:53:58 +0200
commitc675cee97f38e38c5b1e303ce2ee0f251cdcd6a4 (patch)
treefeeaed4ef7c15bb745f056e43b8336019908ec91 /src
parent6d2a2b1dede589c2d3b183d5ac109cab9100d618 (diff)
downloaddotty-c675cee97f38e38c5b1e303ce2ee0f251cdcd6a4.tar.gz
dotty-c675cee97f38e38c5b1e303ce2ee0f251cdcd6a4.tar.bz2
dotty-c675cee97f38e38c5b1e303ce2ee0f251cdcd6a4.zip
InSuperCall is always passed explicitly.
There were spurious InSuperCall flag due to the implicit addition of InSuperCall in normalizeFlags. This addition is not necessary, because inSuperCall is serialized.
Diffstat (limited to 'src')
-rw-r--r--src/dotty/tools/dotc/core/pickling/TreeUnpickler.scala1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/TreeUnpickler.scala b/src/dotty/tools/dotc/core/pickling/TreeUnpickler.scala
index ed0841e3a..376e16190 100644
--- a/src/dotty/tools/dotc/core/pickling/TreeUnpickler.scala
+++ b/src/dotty/tools/dotc/core/pickling/TreeUnpickler.scala
@@ -332,7 +332,6 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table) {
if (tag == DEFDEF) flags |= Method
if (givenFlags is Module)
flags = flags | (if (tag == VALDEF) ModuleCreationFlags else ModuleClassCreationFlags)
- if (ctx.mode.is(Mode.InSuperCall) && !flags.is(ParamOrAccessor)) flags |= InSuperCall
if (ctx.owner.isClass) {
if (tag == TYPEPARAM) flags |= Param
else if (tag == PARAM) flags |= ParamAccessor