dmd/compiler/test/fail_compilation/b19717a.d
2022-07-09 18:53:07 +02:00

14 lines
509 B
D

// 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) {}