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

          Issue ID: 22373
           Summary: Glue layer rejects cast from noreturn to other type
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

Example:

=================================
void cast_()
{
    noreturn n;
    int i = n;
}
=================================
example.d(4): Error: e2ir: cannot cast `n` of type `noreturn` to type `int`

--

Reply via email to