[Issue 22914] New: outdated supplemental error "perhaps remove scope"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 23 13:57:29 UTC 2022
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 at puremagic.com
Reporter: dkorpel at 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.
--
More information about the Digitalmars-d-bugs
mailing list