[Issue 24054] New: return expression expected on noreturn function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 20 22:17:16 UTC 2023
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: nobody at puremagic.com
Reporter: elpenguino+D at 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.
--
More information about the Digitalmars-d-bugs
mailing list