Functions cannot accept opaque types by ref (pointer and slices work already): ---------------------------------------- struct Opaque; void byPtr(Opaque*) {} void byRef(ref Opaque) {} // Fails void bySlice(Opaque[]) {} ----------------------------------------
@MoonlightSentinel created dlang/dmd pull request #12239 "Fix 21668 - Cannot declare ref parameter of opaque type" fixing this issue: - Fix 21668 - Cannot declare ref parameter of opaque type Don't raise errors for VarDeclarations that are marked as ref https://github.com/dlang/dmd/pull/12239
@MoonlightSentinel created dlang/dmd pull request #12240 "Fix 14954 - extern opaque struct instance doesn't compile" fixing this issue: - Fix 21668 - Cannot declare ref parameter of opaque type Don't raise errors for VarDeclarations that are marked as ref https://github.com/dlang/dmd/pull/12240
dlang/dmd pull request #12240 "Fix 14954 - extern opaque struct instance doesn't compile" was merged into master: - fa1916b570007d52f950b82751b7c3fedc29877e by MoonlightSentinel: Fix 21668 - Cannot declare ref parameter of opaque type Don't raise errors for VarDeclarations that are marked as ref https://github.com/dlang/dmd/pull/12240
dlang/dmd pull request #12253 "merge stable" was merged into master: - 8fda1152ab591143a20977ae24fcf7eaf5e2ec51 by Florian: Fix 21668 - Cannot declare ref parameter of opaque type (#12239) Don't raise errors for VarDeclarations that are marked as ref https://github.com/dlang/dmd/pull/12253