dmd/compiler/test/runnable/test9271.d
2022-07-09 18:53:07 +02:00

14 lines
293 B
D

// PERMUTE_ARGS:
// EXTRA_FILES: imports/test9271a.d
import algorithm = imports.test9271a;
bool any(alias predicate, Range)(Range range)
{
return algorithm.any!(predicate)(range);
}
void main()
{
auto arr = ["foo"];
any!(e => e == "asd")(arr); // infinite recursive call -> OK
}