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 #2464 from 9rnsr/fix9017
Issue 9017 - __traits(compiles, { enum e = <expression tuple>; }) is true but code doesn't compile
- Loading branch information
Showing
5 changed files
with
174 additions
and
116 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 |
---|---|---|
@@ -1,11 +1,24 @@ | ||
/* | ||
Error: expression & D10TypeInfo_a6__initZ is not a valid template value argument | ||
a.d(7): template instance a.Tuple!(& D10TypeInfo_a6__initZ) error instantiating | ||
test_output: | ||
--- | ||
fail_compilation/fail235.d(12): Error: expression & _D10TypeInfo_a6__initZ is not a valid template value argument | ||
--- | ||
*/ | ||
template Tuple(TPL...) | ||
{ | ||
alias TPL Tuple; | ||
} | ||
|
||
auto K = Tuple!(typeid(char)); | ||
|
||
/* | ||
test_output: | ||
--- | ||
fail_compilation/fail235.d(24): Error: expression & _D10TypeInfo_a6__initZ is not a valid template value argument | ||
--- | ||
*/ | ||
template Alias(alias A) | ||
{ | ||
alias A Alias; | ||
} | ||
auto A = Alias!(typeid(char)); |
Oops, something went wrong.