blob: e2e59929f6ae593b3b9367d7a0c8b5477b802080 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/diag7747.d(8): Error: forward reference to inferred return type of function call `fact(n - 1)`
---
*/
auto fact(int n) { return n > 1 ? fact(n - 1) : 0; }
void main()
{
fact(1);
}