summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sashihara <21227491+n8sh@users.noreply.github.com>2023-09-22 15:42:00 -0400
committerNathan Sashihara <21227491+n8sh@users.noreply.github.com>2023-09-22 15:43:36 -0400
commit20ae6465d69ba1c35cb3bb35e98cb10072e2a563 (patch)
tree7a580ada98f079150cc239becb1a288a343a08ca
parent90797a48be55b98d86e4e9ceffeecddd4ab90ac7 (diff)
downloadtanya-20ae6465d69ba1c35cb3bb35e98cb10072e2a563.tar.gz
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
-rw-r--r--meta/tanya/meta/trait.d2
1 files changed, 1 insertions, 1 deletions
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];
}