October 09, 2021 [Issue 22373] New: Glue layer rejects cast from noreturn to other type | ||||
---|---|---|---|---|
| ||||
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: nobody@puremagic.com Reporter: moonlightsentinel@disroot.org Example: ================================= void cast_() { noreturn n; int i = n; } ================================= example.d(4): Error: e2ir: cannot cast `n` of type `noreturn` to type `int` -- |
Copyright © 1999-2021 by the D Language Foundation