aboutsummaryrefslogtreecommitdiff
path: root/tests/run/enum-Option.scala
Commit message (Collapse)AuthorAgeFilesLines
* Implementation of proposal changesMartin Odersky2017-04-051-4/+4
| | | | | - rename utility methods - generate utility methods also for object cases
* Change return type of `apply`.Martin Odersky2017-04-041-1/+4
| | | | | | | | | | | In an enum case like case C() extends P1 with ... with Pn ... apply now returns `P1 & ... & Pn`, where before it was just P1. Also, add to Option test.
* More fine-grained distinctions when flags are defined.Martin Odersky2017-04-041-0/+16
Flags like Trait are in fact not always defined when a symbol is created. For symbols loaded from class files, this flag, and some other is defined only once the classfile has been loaded. But this happens in general before the symbol is completed. We model this distinction by separating from the `FromStartFlags` set a new set `AfterLoadFlags` and distinguishing between the two sets in `SymDenotations#is`. Test case is enum-Option.scala. This erroneously complained before that `Enum` was not a trait.