www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21993] New: Cannot cast to noreturn

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

          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 puremagic.com
          Reporter: moonlightsentinel disroot.org

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

--
Jun 04