[Issue 21472] `-checkaction=context` doesn't work with `tupleof`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 18 15:21:37 UTC 2021


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

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

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

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #12055 "Fix 21472 - Support tuple comparison with
`-checkaction=context` (2/2)" was merged into master:

- ec68ec563f2397c49e1e6c9a42c6c89c3973fd1a by MoonlightSentinel:
  Fix 21472 - Support tuple comparison with `-checkaction=context` (2/2)

  Detect `TupleExp` used inside the `assert` and redirect them to a new
  variadic hook in druntime (see dlang/druntime#3318).

  Example:
  ```d
  alias a = AliasSeq!(...);
  alias b = AliasSeq!(...);
  assert(a == b);
  ```

  This assertion will call:
  ```d
  _d_assert_fail!("==", typeof(a))(a, b);
  ```

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

--


More information about the Digitalmars-d-bugs mailing list