[Issue 18417] Make const and immutable postblit constructors illegal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 12 12:15:51 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18417

anonymous4 <dfj1esp02 at sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |spec

--- Comment #2 from anonymous4 <dfj1esp02 at sneakemail.com> ---
Dunno, they can still refer global data?
---
int called;
struct A {
        this(this) immutable { called++; }
}
---

--


More information about the Digitalmars-d-bugs mailing list