www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15814] New: [REG-master] Custom deprecation message is not

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

          Issue ID: 15814
           Summary: [REG-master] Custom deprecation message is not shown
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: k.hara.pg gmail.com

Test case:

deprecated("a") int get() { return 0; }
enum x = get();


Witn 2.070:

test.d(2): Deprecation: function test.get is deprecated - a


With git-head:

test.d(2): Deprecation: function test.get is deprecated

--
Mar 19 2016