blob: 79a9de0ad7ce6b59cb3ccca51fdf5e09835869b5 [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 `()`, candidates are:
fail_compilation/b19717a.d(13): `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) {}