Summary: std.traits.isSafe definition silently changed
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos

--- Comment #0 from klickverbot <> 2012-07-28 15:28:44 PDT 
The following snipped compiles with DMD 2.059, but doesn't with latest Git
master (after pull #679 was merged):

import std.traits;

void safe() @safe;
void trusted() @trusted;
void system() @system;

struct Test
    void safe() @safe;
    void trusted() @trusted;
    void system() @system;

static assert(isSafe!(safe));
static assert(isSafe!(trusted));
static assert(!isSafe!(system));

Test t;
static assert(isSafe!(;
static assert(isSafe!(t.trusted));
static assert(!isSafe!(t.system));

See for the
discussion – I added it here so it isn't missed when preparing the release.

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

Reply via email to