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 d8f66a1 commit 20ed67aCopy full SHA for 20ed67a
tests/rest/source/app.d
@@ -483,7 +483,11 @@ interface Example8API
483
double d;
484
}
485
486
- enum E { foo, bar }
+ enum E {
487
+ foo = 0,
488
+ bar = 1,
489
+ baz = 0
490
+ }
491
492
FooType constFoo (const FooType param);
493
FooType constRefFoo (const ref FooType param);
@@ -728,6 +732,7 @@ void runTests(string url)
728
732
assert(arr.equal(api.inArr(arr)));
729
733
assert(api.getEnum(Example8API.E.foo) == Example8API.E.bar);
730
734
assert(api.getEnum(Example8API.E.bar) == Example8API.E.foo);
735
+ assert(api.getEnum(Example8API.E.baz) == Example8API.E.bar);
731
736
737
738
0 commit comments