digitalmars.D.bugs - [Issue 21719] New: "auto" methods of classes do not auto-infer
- d-bugmail puremagic.com (23/23) Mar 15 2021 https://issues.dlang.org/show_bug.cgi?id=21719
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 puremagic.com Reporter: eyal weka.io import std; struct S { auto f() {} // inferred to be safe nogc pure nothrow } class C { auto f() {} // inferred to be system only } --
Mar 15 2021