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

          Issue ID: 21949
           Summary: noreturn doesn't follow covariance rules
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

The DIP[1] states that the bottom type must satisfy the following conditions:

is(noreturn[] : T[])
is(noreturn* : T*)
is(noreturn function(S) : T function(S), S...)
is(noreturn delegate(S) : T delegate(S), S...)

None of these work ATM.

[1] https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1034.md

--

Reply via email to