Undescriptive linker error. (bug?)
Adam D. Ruppe
destructionator at gmail.com
Fri Apr 5 22:08:50 UTC 2019
On Friday, 5 April 2019 at 21:59:35 UTC, Sjoerd Nijboer wrote:
> Foo Bar()
> {
> Foo foo();
It looks like the compiler is treating that as a function
prototype without a body (that just happens to be nested in
another function).
> return foo;
And then, this foo is given the optional parens treatment, as if
it was a call to foo() of the given function, which is why the
linker complains.
Weird combination of cases that maybe should be illegal.
More information about the Digitalmars-d-learn
mailing list