aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/ast/DesugarEnums.scala
Commit message (Collapse)AuthorAgeFilesLines
* Emit enum utility methods only if enum class is not genericMartin Odersky2017-04-061-6/+8
|
* Implementation of proposal changesMartin Odersky2017-04-051-44/+75
| | | | | - rename utility methods - generate utility methods also for object cases
* Infer enum type args from type parameter boundsMartin Odersky2017-04-041-11/+45
| | | | | | Infer type arguments for enum paraments from corresponding type parameter bounds. This only works if the type parameter in question is variant and its bound is ground.
* Support cases with type parameters that extend a non-parameterized baseMartin Odersky2017-04-041-8/+12
| | | | | | | | Support cases with type parameters that implicitly extend a non-parameterized base without needing their own extends clause. The proposal has been updated to make clear that this is supported. Also address other reviewers comments.
* Support comma-separated enum constantsMartin Odersky2017-04-041-16/+19
|
* Change enumeration members.Martin Odersky2017-04-041-12/+14
| | | | | | | | | | | | | 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.
* Implement enum desugaringMartin Odersky2017-04-041-0/+124