Why this code doesn't want to compile? import std.algorithm; import std.array; struct Foo { int a; this(int v) {} alias a this; } void main() { immutable(Foo)[] foo; auto arr = array(foo.filter!(o => true)); } http://dpaste.dzfl.pl/25572b0f6d0b