www.digitalmars.com         C & C++   DMDScript  

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

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

          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

```
 safe:
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