Skip to content

Commit

Permalink
fix Issue 8667 - selective import breaks normal overload resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Mar 14, 2014
1 parent 68fb5d2 commit ab492b2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/compilable/imports/test8667a.d
@@ -0,0 +1,6 @@
module imports.test8667a;

void split(T)(T k)
if (is(T : int))
{
}
6 changes: 6 additions & 0 deletions test/compilable/imports/test8667b.d
@@ -0,0 +1,6 @@
module imports.test8667b;

void split(T)(T k)
if (is(T : string))
{
}
8 changes: 8 additions & 0 deletions test/compilable/test8667.d
@@ -0,0 +1,8 @@
import imports.test8667a;
import imports.test8667b : split; // removing : split makes it work

void main()
{
split("abc");
split(123);
}

0 comments on commit ab492b2

Please sign in to comment.