[Issue 21719] New: "auto" methods of classes do not auto-infer attributes correctly.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 15 14:02:25 UTC 2021
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: nobody at puremagic.com
Reporter: eyal at weka.io
import std;
struct S {
auto f() {} // inferred to be @safe @nogc pure nothrow
}
class C {
auto f() {} // inferred to be @system only
}
--
More information about the Digitalmars-d-bugs
mailing list