diff options
author | Martin Odersky <odersky@gmail.com> | 2017-02-14 11:17:53 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-04 13:29:38 +0200 |
commit | cf10e28a54aaeab124f9a939f71da7e09d299bcb (patch) | |
tree | f48e018cc4a02d955366db9b7b31315c6502127e /compiler/src/dotty/tools/dotc/core/StdNames.scala | |
parent | 4bdad3c21a1461bed6e91ef69dd767fa5211f60d (diff) | |
download | dotty-cf10e28a54aaeab124f9a939f71da7e09d299bcb.tar.gz dotty-cf10e28a54aaeab124f9a939f71da7e09d299bcb.tar.bz2 dotty-cf10e28a54aaeab124f9a939f71da7e09d299bcb.zip |
Change enumeration members.
Based on the discussion in #1970, enumeration objects now
have three public members:
- valueOf: Map[Int, E]
- withName: Map[String, E]
- values: Iterable[E]
Also, the variance of case type parameters is now
the same as in the corresponding type parameter of
the enum class.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/StdNames.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/StdNames.scala | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/StdNames.scala b/compiler/src/dotty/tools/dotc/core/StdNames.scala index ff3ddbad7..bc3f96d91 100644 --- a/compiler/src/dotty/tools/dotc/core/StdNames.scala +++ b/compiler/src/dotty/tools/dotc/core/StdNames.scala @@ -477,7 +477,6 @@ object StdNames { val productPrefix: N = "productPrefix" val readResolve: N = "readResolve" val reflect : N = "reflect" - val register: N = "register" val reify : N = "reify" val rootMirror : N = "rootMirror" val runOrElse: N = "runOrElse" |