I think this is a bug.

If I return a struct more than one times,  will throw this error.
If I return once,  every thing is ok.

https://run.dlang.io/is/T4kWKM


        ref auto getList() return scope {
if( i ) return NodeList(null); // remove this line will fix this error
                A* a;
                B* b;
                auto list = NodeList(a, b);
                return list;
        }

Reply via email to