https://issues.dlang.org/show_bug.cgi?id=20860
Issue ID: 20860
Summary: OpDispatch does not work for structs with constructor
and destructor
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
It looks like opDispatch does not work in this case:
```
struct A
{
this(int a) {}
///
void opDispatch(string methodName, Params...)(Params params) {
}
~this() {}
}
void main()
{
A(3).test();
}
```
--