[Issue 19706] New: Attribute inference in struct fails
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 27 19:18:47 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19706
Issue ID: 19706
Summary: Attribute inference in struct fails
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: qs.il.paperinik at gmail.com
In this code
struct S
{
static int fImpl(Ret)() { return Ret.init; }
// tells us: `fImpl!int` is @system
pragma(msg, __traits(getFunctionAttributes, fImpl!int));
}
the function attributes should be @safe, pure, nothrow and @nogc.
--
More information about the Digitalmars-d-bugs
mailing list