[Issue 22990] [dip1000] extended return semantics doesn't work on auto return

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 1 03:57:54 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22990

--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Walter Bright from comment #1)
> Perhaps the function can set a flag if it doesn't see any `return`
> statements.

Eh, that means scanning the statement AST before semantic analysis, i.e. slow.

I don't think this is a particular problem anyway, as why would one return
`auto` if there are no `return` statements?

--


More information about the Digitalmars-d-bugs mailing list