[Issue 21993] Cannot cast to noreturn

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 27 12:25:25 UTC 2021


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

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #12768 "Merge stable into master" was merged into
master:

- 346de2d11de903bf95c7a6e573ef717110491e9c by MoonlightSentinel:
  Fix 21993 - Implement cast(noreturn)

  Rewrite `cast(<qual> noreturn) <exp>` as `<exp>, assert(false)`.

  DIP:
  > Every type is allowed to be explicitly cast to noreturn. (Not to be
  > confused with noreturn implicitly casting to every type.) It generates
  > an assert(0):

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

--


More information about the Digitalmars-d-bugs mailing list