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