www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22914] New: outdated supplemental error "perhaps remove scope"


          Issue ID: 22914
           Summary: outdated supplemental error "perhaps remove scope"
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dkorpel live.nl

struct S
    int  val;
    int* ptr;
    int* retScope() return scope
        return &this.val;

The error "perhaps remove `scope` parameter annotation so `return` applies to
`ref`" refers to the old dip1000 design, which has been superseded.

Mar 23 2022