aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/singletons.scala
Commit message (Collapse)AuthorAgeFilesLines
* Adapt neg tests to new neg tests checksVladimirNik2016-02-181-3/+3
|
* Fix tests to survive wellformedness checksMartin Odersky2015-10-221-1/+1
|
* Make it a syntactic criterion whether a literal is a legal typeMartin Odersky2015-08-241-0/+2
| | | | | Introduce a new non-terminal "SimpleLiteral". Only SimpleLiterals can be types.
* Better error message for Null and 'sym singleton types.Martin Odersky2015-08-231-0/+4
| | | | | | Null and 'sym are not legal as singleton types because the underlying values are not stable. They are rejected now outright instead of issuing a cryptic "X is not stable" error message.
* Update neg testMartin Odersky2015-08-231-1/+0
| | | | It's decided that constant types and purity are independent.
* Tests of functionality.Martin Odersky2015-08-231-0/+6
As the comment in pos/singletons.scala says, we currently test only constant propagation during typer. We should also have a test that literalize produces the literals in the right places.