www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11577] New: Template std.typetuple.NoDuplicates removes const types for classes and structs

https://d.puremagic.com/issues/show_bug.cgi?id=11577

           Summary: Template std.typetuple.NoDuplicates removes const
                    types for classes and structs
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: goldmax3000 gmail.com


--- Comment #0 from GoldMax <goldmax3000 gmail.com> 2013-11-21 19:52:13 PST ---
// 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))));

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 21 2013