Skip to content

Commit

Permalink
fix Issue 7553 - auto template param triggers mixin conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Sep 14, 2014
1 parent 98bf11d commit e93599f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions test/runnable/mixin2.d
Expand Up @@ -295,6 +295,35 @@ void test7156()
mixin(rep("++i;", 200));
}

/*********************************************/
// 7553

template Foo7553()
{
struct Range7553 {}
}
template Biz7553()
{
struct Range7553 {}
}

class Bar7553
{
mixin Foo7553!() index0;
mixin Biz7553!() index1;

auto to_range(Range)(Range r)
{
return r;
}

}

void test7553()
{
auto r2 = new Bar7553().to_range(1);
}

/*********************************************/

void main()
Expand Down

0 comments on commit e93599f

Please sign in to comment.