From 20ae6465d69ba1c35cb3bb35e98cb10072e2a563 Mon Sep 17 00:00:00 2001 From: Nathan Sashihara <21227491+n8sh@users.noreply.github.com> Date: Fri, 22 Sep 2023 15:42:00 -0400 Subject: [PATCH] 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 --- meta/tanya/meta/trait.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/tanya/meta/trait.d b/meta/tanya/meta/trait.d index e607890..36bab8e 100644 --- a/meta/tanya/meta/trait.d +++ b/meta/tanya/meta/trait.d @@ -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]; }