https://issues.dlang.org/show_bug.cgi?id=12761
RazvanN <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from RazvanN <[email protected]> --- This bug report is invalid. Alias this creates a subtyping relation between S and I and should behave as inheritance in the case of classes. Take this example which represents the same pattern but in the case of classes: class A {} class B : A {} void fun(ref A a) {} void main() { fun(new B()); } You will get the same error: issue.d(8): Error: function issue.fun(ref A a) is not callable using argument types (B) issue.d(8): cannot pass rvalue argument new B of type issue.B to parameter ref A a --
