← Back to index
|
Original Bugzilla link
Bug 18661 – auto ref and return attribute inference
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-03-26T03:54:52Z
Last change time
2018-03-26T20:17:25Z
Assigned to
No Owner
Creator
Walter Bright
See also
https://issues.dlang.org/show_bug.cgi?id=17512
Comments
Comment #0
by bugzilla — 2018-03-26T03:54:52Z
John Colvin reports: struct S0(T) { int a; auto ref immutable(int) getA() { return a; } } alias A = S0!int; test.d(4): Error: function type pure nothrow @nogc return @safe immutable(int)() has return but does not return any indirections
Comment #1
by bugzilla — 2018-03-26T09:45:42Z
https://github.com/dlang/dmd/pull/8086
Comment #2
by github-bugzilla — 2018-03-26T17:52:13Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/2b9d203207678042d0a4885675be788a892340ef
fix Issue 18661 - auto ref and return attribute inference
https://github.com/dlang/dmd/commit/e1f2be6f7103a0ac35bd7e37c8be4404bb4ad1fc
Merge pull request #8086 from WalterBright/fix18661 fix Issue 18661 - auto ref and return attribute inference merged-on-behalf-of: Jacob Carlborg <
[email protected]
>