April 06, 2013 [Issue 9891] New: Ability to modify immutable using default value of ref/out parameter | ||||
---|---|---|---|---|
| ||||
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: nobody@puremagic.com ReportedBy: verylonglogin.reg@gmail.com --- Comment #0 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 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: ------- |
Copyright © 1999-2021 by the D Language Foundation