Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revised restrictions for value classes and unversal traits | Martin Odersky | 2012-10-03 | 1 | -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-5882 | Martin Odersky | 2012-07-28 | 1 | -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. |