summaryrefslogtreecommitdiff
path: root/test/files/neg/t5882.scala
Commit message (Collapse)AuthorAgeFilesLines
* Revised restrictions for value classes and unversal traitsMartin Odersky2012-10-031-2/+3
| | | | | | | | | and brought compiler in line with them. One thing we can accept IMO are nested classes (nested objects are still a problem). In fact, it makes no sense to exclude nested classes from value classes but not from universal traits. A class nested in universal trait will becomes a class nested in a value class by inheritance. Note that the reflection library already contains a universal trait with a nested class (IndexedSeqLike), so we should accept them if we can.
* Closes SI-5882Martin Odersky2012-07-281-0/+5
I have added a restriction that value classes may not contain inner classes or objects. This makes sense as the "outer" field of any such classes or objects would be ephemeral, with surprising results. SIP-15 has been changed accordingly.