unexpected noreturn behavior

rikki cattermole rikki at cattermole.co.nz
Thu Apr 21 12:28:37 UTC 2022


noreturn is the bottom type which can implicitly convert to any type, 
including void. A value of type noreturn will never be produced and the 
compiler can optimize such code accordingly.

https://dlang.org/spec/type.html#noreturn


More information about the Digitalmars-d-learn mailing list