https://issues.dlang.org/show_bug.cgi?id=22041
Issue ID: 22041
Summary: SumType assignments should work with pointers in @safe
code
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Keywords: safe
Severity: enhancement
Priority: P1
Component: phobos
Assignee: [email protected]
Reporter: [email protected]
Pretty much self-explainatory.
This should work in @safe code:
```d
alias FooBar = SumType!(int*);
auto foobar = FooBar(new int);
foobar = FooBar(new int);
```
--
