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

          Issue ID: 21719
           Summary: "auto" methods of classes do not auto-infer attributes
                    correctly.
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

import std;

struct S {
    auto f() {} // inferred to be @safe @nogc pure nothrow
}

class C {
    auto f() {} // inferred to be @system only
}

--

Reply via email to