Skip to content

Commit 20ed67a

Browse files
committed
Add duplicate enum entry to test.
1 parent d8f66a1 commit 20ed67a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/rest/source/app.d

+6-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,11 @@ interface Example8API
483483
double d;
484484
}
485485

486-
enum E { foo, bar }
486+
enum E {
487+
foo = 0,
488+
bar = 1,
489+
baz = 0
490+
}
487491

488492
FooType constFoo (const FooType param);
489493
FooType constRefFoo (const ref FooType param);
@@ -728,6 +732,7 @@ void runTests(string url)
728732
assert(arr.equal(api.inArr(arr)));
729733
assert(api.getEnum(Example8API.E.foo) == Example8API.E.bar);
730734
assert(api.getEnum(Example8API.E.bar) == Example8API.E.foo);
735+
assert(api.getEnum(Example8API.E.baz) == Example8API.E.bar);
731736
}
732737
}
733738

0 commit comments

Comments
 (0)