Fix foldr scope

This commit is contained in:
2022-05-29 21:43:08 +02:00
parent c7bfbe0657
commit cfcb1e727a
3 changed files with 3 additions and 5 deletions

View File

@ -226,7 +226,7 @@ if (F.length == 1)
*
* Returns: Accumulated value.
*/
auto foldr(R, T)(R range, auto ref T init)
auto foldr(R, T)(scope R range, scope return auto ref T init)
if (isBidirectionalRange!R)
{
if (range.empty)