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 #2191 from 9rnsr/fix10375
[REG2.061] Issue 10375 - private template from imported module hijacks a template type parameter(!)
- Loading branch information
Showing
3 changed files
with
19 additions
and
16 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,6 @@ | ||
module imports.test10375a; | ||
|
||
private template Pack(T...) | ||
{ | ||
alias T tuple; | ||
} |
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,13 @@ | ||
// REQUIRED_ARGS: -o- | ||
|
||
import imports.test10375a; | ||
|
||
void packIt(Pack)(Pack p){ } //3 | ||
|
||
void main() | ||
{ | ||
alias p = packIt!(int); | ||
p(2); // OK <- NG | ||
packIt(2); // OK <- NG | ||
packIt!(int)(2); // OK <- NG | ||
} |