https://issues.dlang.org/show_bug.cgi?id=24054
Issue ID: 24054 Summary: return expression expected on noreturn function Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: diagnostic Severity: normal Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: elpenguin...@gmail.com ``` noreturn foo() { return; } ``` As of DMD 2.104.2, this results in "Error: return expression expected". This is a misleading error, and should probably suggest removal of the statement. --