aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/parsing/Parsers.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-09-01 13:09:32 +0200
committerMartin Odersky <odersky@gmail.com>2014-09-01 13:12:58 +0200
commitd85f2dd7968737936e88f1c08c17c25c5b8786e4 (patch)
tree3152a88203f883e90b31fec740c6a101d4312850 /src/dotty/tools/dotc/parsing/Parsers.scala
parentec1d2745dce34f81578967a032253a1a84361bc7 (diff)
downloaddotty-d85f2dd7968737936e88f1c08c17c25c5b8786e4.tar.gz
dotty-d85f2dd7968737936e88f1c08c17c25c5b8786e4.tar.bz2
dotty-d85f2dd7968737936e88f1c08c17c25c5b8786e4.zip
Added OuterAccessor flag.
Also regorganized flags a bit to better use available slots.
Diffstat (limited to 'src/dotty/tools/dotc/parsing/Parsers.scala')
-rw-r--r--src/dotty/tools/dotc/parsing/Parsers.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/parsing/Parsers.scala b/src/dotty/tools/dotc/parsing/Parsers.scala
index e6de5bb5d..1efc2d31c 100644
--- a/src/dotty/tools/dotc/parsing/Parsers.scala
+++ b/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -1469,8 +1469,8 @@ object Parsers {
}
else mods = atPos(modStart) (mods | Param)
if (ownerKind != ParamOwner.Def) {
- if (isIdent(nme.raw.PLUS)) mods |= CovariantCommon
- else if (isIdent(nme.raw.MINUS)) mods |= ContravariantCommon
+ if (isIdent(nme.raw.PLUS)) mods |= Covariant
+ else if (isIdent(nme.raw.MINUS)) mods |= Contravariant
if (mods is VarianceFlags) in.nextToken()
}
atPos(tokenRange) {