summaryrefslogtreecommitdiff
path: root/test/files/continuations-run/t5314.check
Commit message (Collapse)AuthorAgeFilesLines
* Simplify the adaptation of types of return expressionsphaller2012-08-121-0/+4
| | | | | | | | | | Add `adaptTypeOfReturn` hook to `AnnotationCheckers`. Move adaptation of types of return expressions from `addAnnotations` to `typedReturn` via `adaptTypeOfReturn` hook. This resolves an inconsistency where previously types could have a plus marker without additional CPS annotations. This also adds additional test cases.
* Revert "Add missing cases in tail return transform"phaller2012-08-091-4/+0
| | | | This reverts commit 8d020fab9758ced93eb18fa51c906b95ec104aed.
* Add missing cases in tail return transformphaller2012-08-091-0/+4
| | | | | Disabled warnings that no longer apply because of tail returns. Add several test cases.
* SI-5314 - CPS transform of return statement failsphaller2012-08-081-0/+4
Enable return expressions in CPS code if they are in tail position. Note that tail returns are only removed in methods that do not call `shift` or `reset` (otherwise, an error is reported). Addresses the issues pointed out in a previous pull request: https://github.com/scala/scala/pull/720 - Addresses all issues mentioned here: https://github.com/scala/scala/pull/720#issuecomment-6429705 - Move transformation methods to SelectiveANFTransform.scala: https://github.com/scala/scala/pull/720#commitcomment-1477497 - Do not keep a list of tail returns. Tests: - continuations-neg/t5314-missing-result-type.scala - continuations-neg/t5314-type-error.scala - continuations-neg/t5314-npe.scala - continuations-neg/t5314-return-reset.scala - continuations-run/t5314.scala - continuations-run/t5314-2.scala - continuations-run/t5314-3.scala