Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 10354 - DIP37: ICE with using indirectly imported template …
…through package.d
- Loading branch information
Showing
5 changed files
with
20 additions
and
2 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,2 @@ | ||
module pkgDIP37_10354.mbar; | ||
void bar(T)() {} |
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,2 @@ | ||
module pkgDIP37_10354.mfoo; | ||
void foo(T)() {} |
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,3 @@ | ||
module pkgDIP37_10354; | ||
public import pkgDIP37_10354.mfoo; | ||
public import pkgDIP37_10354.mbar; |
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,11 @@ | ||
// PERMUTE_ARGS: | ||
// REQUIRED_ARGS: -o- -Icompilable/extra-files | ||
|
||
module testDIP37_10354; | ||
import pkgDIP37_10354.mfoo; | ||
void main() | ||
{ | ||
import pkgDIP37_10354; | ||
foo!string(); // OK | ||
bar!string(); // OK <- ICE | ||
} |