[Issue 18628] @disable this(this) erroneously adds `__postblit` member

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 19 16:40:35 UTC 2018


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

Andrei Alexandrescu <andrei at erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei at erdani.com

--- Comment #3 from Andrei Alexandrescu <andrei at erdani.com> ---
Question applies to all functions. Consider:

import std.stdio;
import std.traits;

struct A { @disable void fun(); }

void main()
{
    writeln(hasMember!(A, "fun")); // expected: false
}

This prints true.

--


More information about the Digitalmars-d-bugs mailing list