Resolves #30716
This would maybe be better if it was solved at the compiler level though to allow that construct for pointers. Just for the record, I am getting slightly different error than in #30716
/opt/zig-x86_64-linux-0.16.0-dev.2535+b5bd49460/lib/std/Io/net.zig:162:14: error: expected type '*Io.net.IpAddress', found '@typeInfo(Io.net.IpAddress).@"union".tag_type.?'
.ip4 => a.ip4.port = port,
~^~~
/opt/zig-x86_64-linux-0.16.0-dev.2535+b5bd49460/lib/std/Io/net.zig:56:23: note: enum declared here
pub const IpAddress = union(enum) {
Resolves #30716
This would maybe be better if it was solved at the compiler level though to allow that construct for pointers. Just for the record, I am getting slightly different error than in #30716
```
/opt/zig-x86_64-linux-0.16.0-dev.2535+b5bd49460/lib/std/Io/net.zig:162:14: error: expected type '*Io.net.IpAddress', found '@typeInfo(Io.net.IpAddress).@"union".tag_type.?'
.ip4 => a.ip4.port = port,
~^~~
/opt/zig-x86_64-linux-0.16.0-dev.2535+b5bd49460/lib/std/Io/net.zig:56:23: note: enum declared here
pub const IpAddress = union(enum) {
```