[Issue 19787] New: Storage class type information is lost when used as template parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 4 09:25:51 UTC 2019


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

          Issue ID: 19787
           Summary: Storage class type information is lost when used as
                    template parameter
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: simen.kjaras at gmail.com

void fun(ref int n) {}

unittest {
    import std.traits, std.meta;
    alias a = Parameters!fun;
    alias b = AliasSeq!(Parameters!fun);
    pragma(msg, a); // (ref int)
    pragma(msg, b); // (int)
}

As indicated, the two pragmas give different output.

This seems kinda related to issue 1818.

--


More information about the Digitalmars-d-bugs mailing list