https://issues.dlang.org/show_bug.cgi?id=13468 --- Comment #3 from hsteoh at quickfur.ath.cx --- Workaround: Instead of using the default predicate "a==b" with null (i.e., effectively "a == null"), use this instead: if (canFind!"a is null"(b)) { ... } --