blob: 9eeb622300a4e06a18592569a79a3d8e87f165c8 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice10922.d(10): Error: function `ice10922.__lambda4(const(uint) n)` is not callable using argument types `()`
fail_compilation/ice10922.d(10): missing argument for parameter #1: `const(uint) n`
---
*/
auto fib = (in uint n) pure nothrow {
enum self = __traits(parent, {});
return (n < 2) ? n : self(n - 1) + self(n - 2);
};
void main()
{
auto n = fib(39);
}