| 1 |
// REQUIRED_ARGS: -de |
| 2 |
/* TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/b19717a.d(14): Error: forward reference to template `a` |
| 5 |
fail_compilation/b19717a.d(14): Error: forward reference to template `a` |
| 6 |
fail_compilation/b19717a.d(14): Error: none of the overloads of `a` are callable using argument types `()` |
| 7 |
fail_compilation/b19717a.d(13): Candidates are: `b19717a.a(int b)` |
| 8 |
fail_compilation/b19717a.d(14): `b19717a.a(int b = a)` |
| 9 |
--- |
| 10 |
*/ |
| 11 |
module b19717a; |
| 12 |
|
| 13 |
auto a(int b) {} |
| 14 |
auto a(int b = a) {} |