aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/tailcall
Commit message (Collapse)AuthorAgeFilesLines
* Improve positions for MemberDefs using `namePos`Felix Mulder2016-10-101-1/+1
|
* Fix test failures in tailcall due to name clashes.Dmitry Petrashko2016-04-211-1/+1
|
* Add neg-test for method with @tailrec callsites that is not final.Dmitry Petrashko2016-04-181-0/+10
|
* Test #1221.Dmitry Petrashko2016-04-181-0/+10
|
* Tailrec: drop support for polymorphic recursion.Dmitry Petrashko2016-03-311-2/+2
| | | | | | | | | | If the method that recurses over a different type arguments, if this method is specialised, it would lead to method not being tail-rec anymore. Eg: def foo[@specialized A, @specialized B]: Unit = foo[B, A]
* Adapt neg tests to new neg tests checksVladimirNik2016-02-181-6/+6
|
* Negtests with // error commentsvsalvis2016-02-186-18/+18
|
* Remove trailing spaces in Dotty tests.Dmitry Petrashko2015-04-091-1/+1
|
* Fixing tailrec test.Martin Odersky2014-05-081-1/+1
| | | | | null is not a subtype of a singleton type in Dotty. This slipped by the type checker before. With the tightened rules in the next commits, it will become illegal.
* TailRec phase and tests for it.Dmitry Petrashko2014-04-1112-0/+233
Ported tailcall phase from scalac with such changes: - all transformation is done in the phase itself (previously half of the work was done in backend) - it is now able to run before uncurry - it is now a treeTransform - renamed to tailrec to make it more obvious that this phase transforms only recursive calls. For now this is a single phase which speculatively transforms DefDefs. Speculation can be potentially removed by splitting into 2 phases: one detecting which methods should be transformed second performing transformation. But, as transformation requires as same amount of work as detection, I believe it will be simpler to maintain it as a single phase. Conflicts: tests/pos/typers.scala