[Issue 23101] [std.sumtype] canMatch does not account ref

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 11 18:39:53 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23101

--- Comment #3 from João Lourenço <jlourenco5691 at gmail.com> ---
Sorry, correction of the bug report example:
```
SumType!(int, string) st;
st.match!(
  function int*(string _) => assert(0),
  function int*(ref int i) => &i,
);
```

--


More information about the Digitalmars-d-bugs mailing list