mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
23 lines
299 B
D
23 lines
299 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/diag6539.d(21): Error: overloadset `diag6539.Rectangle` is used as a type
|
|
---
|
|
*/
|
|
|
|
mixin template foo()
|
|
{
|
|
struct Rectangle(T) {}
|
|
}
|
|
|
|
mixin template bar()
|
|
{
|
|
bool Rectangle(bool, int, int, int, int) {}
|
|
}
|
|
|
|
mixin foo;
|
|
mixin bar;
|
|
|
|
void test(Rectangle rect)
|
|
{
|
|
}
|