We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 473f20e commit 8e8c883Copy full SHA for 8e8c883
source/mir/annotated.d
@@ -14,7 +14,9 @@ version (D_Exceptions)
14
static immutable exc = new Exception(excMsg);
15
16
/++
17
-A convenience difinition of an annotated value.
+A convenience difinition of an annotated value.
18
+
19
+A structure that behaves like a recursive algebraic type should define `enum _serdeRecursiveAlgebraic;` member.
20
+/
21
@serdeRegister
22
@serdeAnnotation
@@ -26,7 +28,7 @@ struct Annotated(T) {
26
28
static if (!(is(T == union) || is(T == struct)))
27
29
private enum _alloc_ = false;
30
else
- static if (serdeIsDynamicAlgebraic!T)
31
+ static if (__traits(hasMember, T, "_serdeRecursiveAlgebraic"))
32
private enum _alloc_ = true;
33
34
{
0 commit comments