[Issue 21975] is expression ignores implicit conversion of struct via alias this when pattern matching

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 27 20:56:52 UTC 2022


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

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@pbackus created dlang/phobos pull request #8394 "sumtype: work around issue
21975 in isSumType" mentioning this issue:

- sumtype: work around issue 21975 in isSumType

  isSumType!T now evaluates to true instead of false when T is a templated
  struct type that implicitly converts to a SumType via alias this.

https://github.com/dlang/phobos/pull/8394

--


More information about the Digitalmars-d-bugs mailing list