← Back to index
|
Original Bugzilla link
Bug 22914 – outdated supplemental error "perhaps remove scope"
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-03-23T13:57:29Z
Last change time
2022-03-23T20:12:15Z
Keywords
pull
Assigned to
No Owner
Creator
Dennis
Comments
Comment #0
by dkorpel — 2022-03-23T13:57:29Z
``` @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.
Comment #1
by dlang-bot — 2022-03-23T13:59:08Z
@dkorpel created dlang/dmd pull request #13875 "Fix issue 22914 - outdated supplemental error "perhaps remove scope"" fixing this issue: - Fix issue 22914 - outdated supplemental error "perhaps remove scope"
https://github.com/dlang/dmd/pull/13875
Comment #2
by dlang-bot — 2022-03-23T20:12:15Z
dlang/dmd pull request #13875 "Fix issue 22914 - outdated supplemental error "perhaps remove scope"" was merged into master: - 5e00be6960ca9d09c380d78951fa040320cb7752 by Dennis Korpel: Fix issue 22914 - outdated supplemental error "perhaps remove scope"
https://github.com/dlang/dmd/pull/13875