http://d.puremagic.com/issues/show_bug.cgi?id=8459

           Summary: std.traits.isSafe definition silently changed
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: c...@klickverbot.at


--- Comment #0 from klickverbot <c...@klickverbot.at> 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!(t.safe));
static assert(isSafe!(t.trusted));
static assert(!isSafe!(t.system));
----

See https://github.com/D-Programming-Language/phobos/pull/675 for the
discussion – I added it here so it isn't missed when preparing the release.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to