The following code: ``` void get( out int i) { i = 42; } struct Foo { int v; alias v this; } void main () { Foo f; get(f); assert(f == 42); } ``` Produce the following error: reg.d(14): Error: function reg.get (out int i) is not callable using argument types (Foo) It used to work in 2.066, broke in 2.067, and is still broken. It still works with `ref`, though.
Digger points to #4091
https://github.com/D-Programming-Language/dmd/pull/5451
Commits pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/89c63bf1e1a508472fc88ac355fa7ccd39fe7802 fix Issue 15674 - alias this rejected for 'out' parameter https://github.com/D-Programming-Language/dmd/commit/7d1e77fe5a84a0eac0e1898b54f7e724302cf409 Merge pull request #5451 from 9rnsr/fix15674 [REG 2.066] Issue 15674 - alias this rejected for 'out' parameter
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/89c63bf1e1a508472fc88ac355fa7ccd39fe7802 fix Issue 15674 - alias this rejected for 'out' parameter https://github.com/D-Programming-Language/dmd/commit/7d1e77fe5a84a0eac0e1898b54f7e724302cf409 Merge pull request #5451 from 9rnsr/fix15674