https://issues.dlang.org/show_bug.cgi?id=22419
Issue ID: 22419 Summary: Allow return type inference for main Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: moonlightsenti...@disroot.org `auto main()` is currently rejected by the compiler even if the right return type (int/void/noreturn) can be inferred from the function body. But return type inference allows for more flexibility and potentially better codegen for `void` vs. `noreturn`. --