https://issues.dlang.org/show_bug.cgi?id=24574

--- Comment #2 from [email protected] ---
Adding const would mitigate that, but still does not infer scope on f:

-----
struct A
{
    void* p;
    @safe nothrow pure void f() const;
} 

@safe nothrow pure void g(ref const(A));

@safe void e(ref scope const(A) a)
{
    a.f();
    g(a);
}
-----

--

Reply via email to