Summary: traits compiles can't detect non-copyable errors
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-02-26 13:22:14 PST ---
struct S
    @disable this(this);
static assert(!__traits(compiles, (S s) => s));
static assert(!__traits(compiles, function S(S s) { return s; }));


The error is detected too late, i.e. in the glue layer.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to