www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14069] New: Partial type deduction should prefer the

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

          Issue ID: 14069
           Summary: Partial type deduction should prefer the specified
                    type qualifier
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: k.hara.pg gmail.com

Following code prints immutable(char[5]), but it should be const(char[5]).

    const[$] sx = "hello";
    pragma(msg, typeof(sx));

--
Jan 28 2015