summaryrefslogtreecommitdiff
path: root/test/files/neg/t8217-local-alias-requires-rhs.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-8217 allow abstract type members in objectsPaolo G. Giarrusso2014-10-011-0/+15
Previously, abstract type members were allowed in objects only when inherited, but not when declared directly. This inconsistency was not intended. In dotty, abstract type members are allowed in values and represent existentials; so upon discussion, it was decided to fix things to conform to dotty and allow such type members. Adriaan also asked to keep rejecting abstract type members in methods even though they would conceivably make sense. Discussions happened on #3407, scala/scala-dist#127. This code is improved from #3442, keeps closer to the current logic, and passes tests. Existing tests that have been converted to `pos` tests show that this works, and a new test has been added to show that local aliases (ie term-owned) without a RHS are still rejected.