Revert usage of "do" instead of "body"

And fix GCC build.
This commit is contained in:
Eugen Wissner 2017-11-16 19:15:56 +01:00
parent 7797f0a1fe
commit a84c71f26d
2 changed files with 6 additions and 6 deletions

View File

@ -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];
}

View File

@ -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)
{