mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
14 lines
293 B
D
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
|
|
}
|