1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag6539.d(21): Error: overloadset diag6539.Rectangle is used as a type
5 ---
6 */
7 
foo()8 mixin template foo()
9 {
10     struct Rectangle(T) {}
11 }
12 
bar()13 mixin template bar()
14 {
15     bool Rectangle(bool, int, int, int, int) {}
16 }
17 
18 mixin foo;
19 mixin bar;
20 
test(Rectangle rect)21 void test(Rectangle rect)
22 {
23 }
24