digitalmars.D.bugs - [Issue 11055] New: Regression (2.064 git-head): 'pure' function prevents its in-contract from checking parameters
- d-bugmail puremagic.com (28/28) Sep 17 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11055
- d-bugmail puremagic.com (12/12) Sep 17 2013 http://d.puremagic.com/issues/show_bug.cgi?id=11055
http://d.puremagic.com/issues/show_bug.cgi?id=11055 Summary: Regression (2.064 git-head): 'pure' function prevents its in-contract from checking parameters Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: regression Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: kekeniro2 yahoo.co.jp This code doesn't work in git-head. It is a regression introduced in 2.064 alpha. CODE: class SomeClass { pure void foo(int n) in { assert( !n ); } body { } } OUTPUT: Error: pure nested function '__require' cannot access mutable data 'n' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 17 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11055 Henning Pohl <henning still-hidden.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |henning still-hidden.de Resolution| |DUPLICATE PDT --- *** This issue has been marked as a duplicate of issue 10981 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 17 2013