www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21949] New: noreturn doesn't follow covariance rules

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

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

--
May 21