Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 9420 - [2.062alpha] Weird "(null)" output in error message
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
TEST_OUTPUT | ||
--- | ||
fail_compilation/diag9420.d(21): Error: function diag9420.S.t3!().tx () is not callable using argument types (int) | ||
fail_compilation/diag9420.d(21): Error: expected 0 arguments, not 1 for non-variadic function type pure nothrow @safe void() | ||
--- | ||
*/ | ||
|
||
mixin template Mixin() { } | ||
struct S | ||
{ | ||
template t3(T...) | ||
{ | ||
void tx(T){} | ||
alias t3 = tx; | ||
} | ||
} | ||
void main() | ||
{ | ||
S s1; | ||
s1.t3!()(1); | ||
} |