This does not compile:
```
void foo()() {
nothrow bar() {} // allowed
nothrow bar(); // should parse according to spec
}
```
The spec says that in an AutoFuncDeclaration a MissingFunctionBody is allowed, yet even before instantiating template foo it raises an error:
Error: function declaration without return type.
I suggest only allowing SpecifiedFunctionBody in an AutoFuncDeclaration since it would always be a semantic error anyways (you can't infer the return type without a function body).
https://dlang.org/spec/grammar.html#AutoFuncDeclarationhttps://dlang.org/spec/grammar.html#FunctionBody
Comment #1 by robert.schadek — 2024-12-15T15:25:39Z