Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 8667 - selective import breaks normal overload resolution
- Loading branch information
Showing
3 changed files
with
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module imports.test8667a; | ||
|
||
void split(T)(T k) | ||
if (is(T : int)) | ||
{ | ||
} |
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.test8667b; | ||
|
||
void split(T)(T k) | ||
if (is(T : string)) | ||
{ | ||
} |
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,8 @@ | ||
import imports.test8667a; | ||
import imports.test8667b : split; // removing : split makes it work | ||
|
||
void main() | ||
{ | ||
split("abc"); | ||
split(123); | ||
} |