Is this a bug?

Rene Zwanenburg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Sep 11 03:33:48 PDT 2015


The following fails to compile with an 'cannot deduce function 
from argument types' error. When using an array of something 
other than TypeInfo_Class everything works as expected.

void main()
{
	import std.algorithm.mutation : remove;
	
	TypeInfo_Class[] arr;
	TypeInfo_Class c;
	arr = arr.remove!(a => a is c);
}


More information about the Digitalmars-d-learn mailing list