aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Flags.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-10-09 12:36:43 +0200
committerMartin Odersky <odersky@gmail.com>2013-10-09 12:36:43 +0200
commit0fc19e0e1ef7b56f9ca0649fde35765892cf1a53 (patch)
treed037ee483a3c89218acf35983006dd8bc4336b46 /src/dotty/tools/dotc/core/Flags.scala
parent16c1ddd3bb86c61890418b8394d44486e7bbd9dd (diff)
downloaddotty-0fc19e0e1ef7b56f9ca0649fde35765892cf1a53.tar.gz
dotty-0fc19e0e1ef7b56f9ca0649fde35765892cf1a53.tar.bz2
dotty-0fc19e0e1ef7b56f9ca0649fde35765892cf1a53.zip
Cleanup of new scheme for handling local type parameters and type members.
If a type parameter or local type member is co/contravariant, its instantiation is a special alias type that remembers the variance. These alias types can be refined with subtypes in subclasses and intersection and union translate to their bounds.
Diffstat (limited to 'src/dotty/tools/dotc/core/Flags.scala')
-rw-r--r--src/dotty/tools/dotc/core/Flags.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Flags.scala b/src/dotty/tools/dotc/core/Flags.scala
index 17ff18b73..593fb2bbb 100644
--- a/src/dotty/tools/dotc/core/Flags.scala
+++ b/src/dotty/tools/dotc/core/Flags.scala
@@ -458,10 +458,10 @@ object Flags {
final val ParamOrAccessor = Param | Accessor
/** A covariant type parameter instance */
- final val CovariantExpanded = allOf(ExpandedName, Covariant)
+ final val LocalCovariant = allOf(Local, Covariant)
/** A contravariant type parameter instance */
- final val ContravariantExpanded = allOf(ExpandedName, Contravariant)
+ final val LocalContravariant = allOf(Local, Contravariant)
/** A covariant type parameter instance */
final val TypeParamOrInstance = TypeParam | TypeParamInstance