[Issue 21993] New: Cannot cast to noreturn

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 4 23:49:40 UTC 2021


          Issue ID: 21993
           Summary: Cannot cast to noreturn
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: moonlightsentinel at disroot.org

`cast(noreturn) <exp>` is specified as `<exp>, assert(false)`.
But DMD rejects the cast with `cannot cast ... to noreturn`


More information about the Digitalmars-d-bugs mailing list