blob: d10b3f940709223507f4360a1dee78654143eeaa [file] [log] [blame]
// REQUIRED_ARGS: -de
/* TEST_OUTPUT:
---
fail_compilation/b19717a.d(14): Error: forward reference to template `a`
fail_compilation/b19717a.d(14): Error: forward reference to template `a`
fail_compilation/b19717a.d(14): Error: none of the overloads of `a` are callable using argument types `()`
fail_compilation/b19717a.d(13): Candidates are: `b19717a.a(int b)`
fail_compilation/b19717a.d(14): `b19717a.a(int b = a)`
---
*/
module b19717a;
auto a(int b) {}
auto a(int b = a) {}