blob: 45797ebccc92352160cbdfae5a1095c242e6221e [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail6029.d(10): Error: alias this is not reachable as `A` already converts to `A`
---
*/
struct A
{
static A a;
alias a this;
}
void foo(A a)
{
}
void main()
{
// foo(A); // Error: type A is not an expression
int s = A; // Error: type A has no value + stack overflow
}