```d
import std;
struct tree(T){
alias node=typeof(this)[2]*;
SumType!(T,node) data;
bool isleaf()=>
data.match!(
(T)=>true,
(node)=>false);
}
unittest{
tree!int foo;
}
```
adding names to the lamdas arguments cause it to compile
Comment #1 by alphaglosined — 2024-05-31T22:02:20Z
This is expected behavior.
Those lambdas are templates, adding names stops that.
Comment #2 by robert.schadek — 2024-12-01T16:42:39Z