[Issue 20899] New: Qualifiers on alias parameters inconsistency between built-in types and user defined types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 6 15:42:41 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20899

          Issue ID: 20899
           Summary: Qualifiers on alias parameters inconsistency between
                    built-in types and user defined types
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: john.loughran.colvin at gmail.com

template X(alias A) {
    alias X = A;
}

struct S {}

pragma(msg, X!(const(int))); // const(int)
pragma(msg, X!(const(S))); // S

--


More information about the Digitalmars-d-bugs mailing list