http://d.puremagic.com/issues/show_bug.cgi?id=9891
Summary: Ability to modify immutable using default value of
ref/out parameter
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid
Severity: critical
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Denis Shelomovskij <[email protected]> 2013-04-06
20:24:13 MSD ---
The following code compiles but should not:
---
immutable int i;
void f(ref int n = i)
{
++n;
}
---
P.S.
Inspired by fixed Issue 9773.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------