Bug 7222 – inout functions cannot use return type inference
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-01-04T11:57:00Z
Last change time
2013-06-07T01:39:52Z
Assigned to
nobody
Creator
timon.gehr
Comments
Comment #0 by timon.gehr — 2012-01-04T11:57:56Z
With DMD 2.057, the following code fails to compile:
auto foo(inout(int)[] x){return x;}
This also means inout delegate literals have to specify explicit return types.