www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13008] New: [REG2.066a] 'deprecated' is not allowed to refer


          Issue ID: 13008
           Summary: [REG2.066a] 'deprecated' is not allowed to refer
                    another deprecated when it is a function declaration
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: kekeniro2 yahoo.co.jp

The below code does not work with -de flag in Git-head.
This is a recent regression.

deprecated class Dep { }
deprecated Dep depFunc1(); // error
deprecated void depFunc2(Dep); // error

Jun 29 2014