Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3508 from AndrejMitrovic/Fix8101
Issue 8101 - Display candidate function overloads when function call fails.
- Loading branch information
Showing
4 changed files
with
187 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/diag8101.d(56): Error: function diag8101.f_0 (int) is not callable using argument types () | ||
fail_compilation/diag8101.d(57): Error: function diag8101.f_1 (int) is not callable using argument types (), candidates are: | ||
fail_compilation/diag8101.d(32): diag8101.f_1(int) | ||
fail_compilation/diag8101.d(33): diag8101.f_1(int, int) | ||
fail_compilation/diag8101.d(58): Error: function diag8101.f_2 (int) is not callable using argument types (), candidates are: | ||
fail_compilation/diag8101.d(35): diag8101.f_2(int) | ||
fail_compilation/diag8101.d(36): diag8101.f_2(int, int) | ||
fail_compilation/diag8101.d(37): diag8101.f_2(int, int, int) | ||
fail_compilation/diag8101.d(38): diag8101.f_2(int, int, int, int) | ||
fail_compilation/diag8101.d(39): diag8101.f_2(int, int, int, int, int) | ||
fail_compilation/diag8101.d(58): ... (1 more, -v to show) ... | ||
fail_compilation/diag8101.d(60): Error: template diag8101.t_0 cannot deduce function from argument types !()(), candidates are: | ||
fail_compilation/diag8101.d(42): diag8101.t_0(T1)() | ||
fail_compilation/diag8101.d(61): Error: template diag8101.t_1 cannot deduce function from argument types !()(), candidates are: | ||
fail_compilation/diag8101.d(44): diag8101.t_1(T1)() | ||
fail_compilation/diag8101.d(45): diag8101.t_1(T1, T2)() | ||
fail_compilation/diag8101.d(62): Error: template diag8101.t_2 cannot deduce function from argument types !()(), candidates are: | ||
fail_compilation/diag8101.d(47): diag8101.t_2(T1)() | ||
fail_compilation/diag8101.d(48): diag8101.t_2(T1, T2)() | ||
fail_compilation/diag8101.d(49): diag8101.t_2(T1, T2, T3)() | ||
fail_compilation/diag8101.d(50): diag8101.t_2(T1, T2, T3, T4)() | ||
fail_compilation/diag8101.d(51): diag8101.t_2(T1, T2, T3, T4, T5)() | ||
fail_compilation/diag8101.d(62): ... (1 more, -v to show) ... | ||
--- | ||
*/ | ||
|
||
void f_0(int); | ||
|
||
void f_1(int); | ||
void f_1(int, int); | ||
|
||
void f_2(int); | ||
void f_2(int, int); | ||
void f_2(int, int, int); | ||
void f_2(int, int, int, int); | ||
void f_2(int, int, int, int, int); | ||
void f_2(int, int, int, int, int, int); | ||
|
||
void t_0(T1)(); | ||
|
||
void t_1(T1)(); | ||
void t_1(T1, T2)(); | ||
|
||
void t_2(T1)(); | ||
void t_2(T1, T2)(); | ||
void t_2(T1, T2, T3)(); | ||
void t_2(T1, T2, T3, T4)(); | ||
void t_2(T1, T2, T3, T4, T5)(); | ||
void t_2(T1, T2, T3, T4, T5, T6)(); | ||
|
||
void main() | ||
{ | ||
f_0(); | ||
f_1(); | ||
f_2(); | ||
|
||
t_0(); | ||
t_1(); | ||
t_2(); | ||
} |