Compare commits

...

2 Commits

Author SHA1 Message Date
e1fd528607 Merge remote-tracking branch 'n8sh/DMD_2.105' 2023-09-23 17:22:27 +02:00
Nathan Sashihara
20ae6465d6 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
2023-09-22 15:43:36 -04:00

View File

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