Ran into this while updating DMD to 2.094.1 in our codebase. What is it about and how to fix it?
Deprecation: returning this escapes a reference to parameter this
perhaps annotate the parameter with return
The warning was emitted for the return this; line:
public ref EventBuilder typeOne()
{
this.type = 1;
return this;
}