[Issue 21949] New: noreturn doesn't follow covariance rules
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 21 18:42:58 UTC 2021
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 at puremagic.com
Reporter: moonlightsentinel at 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
--
More information about the Digitalmars-d-bugs
mailing list