aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i705-inner-value-class.scala
Commit message (Collapse)AuthorAgeFilesLines
* Refactor testMartin Odersky2016-11-071-2/+0
| | | | | | | After refactoring, one test (cannot extend final class) shadowed the others, which wer done in a later phase. Splitting in two to get all errors again.
* Adapt neg tests to new neg tests checksVladimirNik2016-02-181-8/+8
|
* Check value class member restrictionsMartin Odersky2015-07-021-0/+7
| | | | | | | | | | | | | | According to SIP 15 a value class C must obey the following restrictions: C may not have secondary constructors. C may not declare fields (other than the parameter of a value class). C may not contain object definitions. C may not have initialization statements. These are enforced by this commit. We are still missing restrictions on value class paremeters. We should review what the right set of conditions is (probably we want to admit non-vals, and maybe even multiple parameters).
* Check that value classes are staticMartin Odersky2015-07-021-0/+15