aboutsummaryrefslogtreecommitdiff
path: root/tests/run/lazy-implicit-lists.check
Commit message (Collapse)AuthorAgeFilesLines
* Treat implicit by-name arguments as lazy valuesMartin Odersky2017-02-171-0/+4
With the previous rules, the two test cases produce a diverging implicit expansion. We avoid this by creating for every implicit by-name argument of type T a lazy implicit value of the same type. The implicit value is visible for all nested implicit searches of by-name arguments. That way, we tie the knot and obtain a recursive lazy value instead of a diverging expansion.