D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7297 - [tdpl] allow explicit storage classes for delegate parameters with inferred types
Summary: [tdpl] allow explicit storage classes for delegate parameters with inferred t...
Status: RESOLVED DUPLICATE of issue 7705
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid, TDPL
Depends on:
Blocks:
 
Reported: 2012-01-15 09:17 UTC by timon.gehr
Modified: 2012-03-22 01:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description timon.gehr 2012-01-15 09:17:39 UTC
eg, the following code should compile:
void main() {
    int x;
    ((ref a)=>a+=1)(x);
    x=((immutable a)=>a+1)(x);
}
Comment 1 timon.gehr 2012-03-21 13:35:23 UTC
TDPL assumes this works on p.369. Raising from enhancement to TDPL bug.
Comment 2 Kenji Hara 2012-03-21 17:20:42 UTC
The test case works with 2.059head.
It seems to me that this is a dup of bug 7705, and it is already fixed.
Comment 3 timon.gehr 2012-03-22 01:42:03 UTC
ok.

*** This issue has been marked as a duplicate of issue 7705 ***