// OK
static assert(is(NoDuplicates!(int, const(int)) == TypeTuple!(int, const(int))));
// Error - result is (DateTime)
static assert(is(NoDuplicates!(DateTime, const(DateTime)) == TypeTuple!(DateTime, const(DateTime))));
// Error - result is (Object)
static assert(is(NoDuplicates!(Object, const(Object)) == TypeTuple!(Object, const(Object))));
Comment #1 by alex.jercaianu — 2017-10-10T10:54:10Z
What would be the correct behaviour here?
Should it treat the const and nonconst as duplicates?
Comment #2 by bugzilla — 2019-12-11T07:42:20Z
Meanwhile all three of them fail.
Comment #3 by schveiguy — 2020-07-10T13:42:26Z
This is related to issue 20863
If that issue is fixed, this one gets fixed as well. But of course, one could probabl fix this without fixing 20863. So I won't close this as a duplicate.
Comment #4 by robert.schadek — 2024-12-01T16:19:11Z