The compiler should be able to resolve the return type:
struct Tree {
Tree* left;
}
auto fmap() {
return new Tree(fmap());
}
void main()
{
fmap();
}
Error: forward reference to inferred return type of function call 'fmap()'
Comment #1 by robert.schadek — 2024-12-13T18:47:47Z