1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail6029.d(10): Error: alias this is not reachable as `A` already converts to `A`
5 ---
6 */
7 struct A
8 {
9     static A a;
10     alias a this;
11 }
12 
foo(A a)13 void foo(A a)
14 {
15 }
16 
main()17 void main()
18 {
19 //  foo(A);    // Error: type A is not an expression
20     int s = A; // Error: type A has no value + stack overflow
21 }
22