struct is not copyable because it is annotated with @disable bugs ?

Newbie2019 newbie2019 at gmail.com
Sat Jul 27 16:59:44 UTC 2019


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;
	}


More information about the Digitalmars-d-learn mailing list