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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from [email protected] ---
You have to mark the constructor as `pure`:

    struct S { this(ref int val) pure { ++val; } }

Attributes are only inferred under special circumstances. You generally have to
be explicit with them. Closing as invalid. Please reopen if I'm missing the
point.

--

Reply via email to