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