Update to compile with DMD 2.105
https://dlang.org/changelog/2.105.0.html#dmd.enum-function > enum on a function declaration had no effect other than being > equivalent to the auto storage class when no return type was present. > That syntax could be confused with enum manifest constants and is now > an error... Instead, remove enum and use auto where necessary
This commit is contained in:
parent
90797a48be
commit
20ae6465d6
@ -2335,7 +2335,7 @@ if (isCallable!F)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
enum getDefault(T[i .. i + 1] name)
|
auto getDefault(T[i .. i + 1] name)
|
||||||
{
|
{
|
||||||
return name[0];
|
return name[0];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user