[Issue 9148] 'pure' is broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 5 14:31:14 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=9148



--- Comment #2 from timon.gehr at gmx.ch 2014-04-05 14:31:07 PDT ---
(In reply to comment #0)
> 
> struct S{
>     int x;
>     int foo()pure{
>         return x++;
>     }
>     int bar()immutable pure{
>         // return x++; // error
>         return 2;
>     }
> }
> 

(this behaviour is obviously expected.)

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list