MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test21930.d
blob6c932435b0102929dfa22ede9c3f5a8f3be6a6a5
1 // https://issues.dlang.org/show_bug.cgi?id=21930
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test21930.d(21): Error: variable `string` is used as a type
6 fail_compilation/test21930.d(15): variable `string` is declared here
7 fail_compilation/test21930.d(26): Error: constructor `test21930.R.this(string)` is not callable using argument types `()`
8 ---
9 */
11 alias AliasSeq(T...) = T;
13 alias TP(alias name) = AliasSeq!name;
15 int string; // 'string' declared as a variable
17 alias a = TP!(main);
19 class R
21 this(string) { } // so constructor have errors
24 @system main()
26 new R;