https://issues.dlang.org/show_bug.cgi?id=24575
Issue ID: 24575
Summary: sumtype fails to match lambdas with anonymous
arguments
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: [email protected]
Reporter: [email protected]
```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
--