@safe function causes attribute inference since 2.072

Walter Bright newshound2 at digitalmars.com
Tue Apr 14 20:25:54 UTC 2020


On 4/13/2020 8:17 AM, Steven Schveighoffer wrote:
> Should this be a bug? I think at least the fact that inference only happens on 
> structs inside @safe functions doesn't make sense (why not pure, @nogc nothrow 
> functions).

Here's what you're looking for:

https://github.com/dlang/dmd/blob/master/src/dmd/func.d#L1245


More information about the Digitalmars-d mailing list