[Issue 22041] New: SumType assignments should work with pointers in @safe code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jun 18 19:04:22 UTC 2021
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: nobody at puremagic.com
Reporter: lsferreira169 at gmail.com
Pretty much self-explainatory.
This should work in @safe code:
```d
alias FooBar = SumType!(int*);
auto foobar = FooBar(new int);
foobar = FooBar(new int);
```
--
More information about the Digitalmars-d-bugs
mailing list