diff --git a/source/tanya/range/array.d b/source/tanya/range/array.d index 3dcc331..9700d18 100644 --- a/source/tanya/range/array.d +++ b/source/tanya/range/array.d @@ -59,7 +59,7 @@ in { assert(array.length > 0); } -do +body { return array[0]; } @@ -99,7 +99,7 @@ in { assert(array.length > 0); } -do +body { return array[$ - 1]; } @@ -138,7 +138,7 @@ in { assert(array.length > 0); } -do +body { array = array[1 .. $]; } @@ -149,7 +149,7 @@ in { assert(array.length > 0); } -do +body { array = array[0 .. $ - 1]; } diff --git a/source/tanya/range/primitive.d b/source/tanya/range/primitive.d index 542ee69..88cdf76 100644 --- a/source/tanya/range/primitive.d +++ b/source/tanya/range/primitive.d @@ -1053,7 +1053,7 @@ in assert(count <= range.length); } } -do +body { static if (hasSlicing!R) { @@ -1112,7 +1112,7 @@ in assert(count <= range.length); } } -do +body { static if (hasSlicing!R) {