Thread overview
[Issue 21975] is expression ignores implicit conversion of struct via alias this when pattern matching
Feb 27, 2022
Dlang Bot
Feb 27, 2022
Dlang Bot
Mar 01, 2022
Dlang Bot
Mar 01, 2022
Dlang Bot
Mar 01, 2022
Dlang Bot
February 27, 2022
https://issues.dlang.org/show_bug.cgi?id=21975

--- Comment #1 from Dlang Bot <dlang-bot@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

--
February 27, 2022
https://issues.dlang.org/show_bug.cgi?id=21975

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #8394 "sumtype: work around issue 21975 in isSumType" was merged into master:

- c47c861646ddbb8bd30be849aee37a6167ab41f3 by Paul Backus:
  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

--
March 01, 2022
https://issues.dlang.org/show_bug.cgi?id=21975

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@RazvanN7 created dlang/dmd pull request #13738 "Fix Issue 21975 - is expression ignores implicit conversion of struct via alias this when pattern matching" fixing this issue:

- Fix Issue 21975 - is expression ignores implicit conversion of struct via alias this when pattern matching

https://github.com/dlang/dmd/pull/13738

--
March 01, 2022
https://issues.dlang.org/show_bug.cgi?id=21975

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13738 "Fix Issue 21975 - is expression ignores implicit conversion of struct via alias this when pattern matching" was merged into master:

- 7e62db470b9e73bb6d9813e25295d9277f313131 by RazvanN7:
  Fix Issue 21975 - is expression ignores implicit conversion of struct via
alias this when pattern matching

https://github.com/dlang/dmd/pull/13738

--
March 01, 2022
https://issues.dlang.org/show_bug.cgi?id=21975

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #8397 "Revert "sumtype: work around issue 21975 in isSumType"" was merged into master:

- 7806947d9447f12062ac0976f9918bec79398449 by Paul Backus:
  Revert "sumtype: work around issue 21975 in isSumType"

  This reverts commit 2de68340ae2a057fd993af7bc2388325e68a9186.

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

--