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:
Nathan Sashihara 2023-09-22 15:42:00 -04:00
parent 90797a48be
commit 20ae6465d6

View File

@ -2335,7 +2335,7 @@ if (isCallable!F)
}
else
{
enum getDefault(T[i .. i + 1] name)
auto getDefault(T[i .. i + 1] name)
{
return name[0];
}