www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19794] New: const on AliasSeq ignored

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

          Issue ID: 19794
           Summary: const on AliasSeq ignored
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: yshuiv7 gmail.com

const(AliasSeq!(int, int)) a;

pragma(msg, typeof(a));  // <- (int, int)


The compiler should probably at least generate a warning for this case.

--
Apr 08 2019