d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fix21585.d
blob7000f39324ec673b8522846eae8aebd3f9ae39c4
1 /* https://issues.dlang.org/show_bug.cgi?id=21585
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fix21585.d(103): Error: expected 1 arguments for `toType` but had 0
5 fail_compilation/fix21585.d(104): Error: expression expected as second argument of __traits `toType`
6 fail_compilation/fix21585.d(105): Error: `string` expected for __traits(toType, string), not `(1)` of type `int`
7 fail_compilation/fix21585.d(106): Error: cannot determine `__traits(toType, "hello betty")`
8 ---
9 */
11 #line 100
13 template Type(T) { alias Type = T; }
15 alias T1 = Type!(__traits(toType));
16 alias T2 = Type!(__traits(toType, int));
17 alias T3 = Type!(__traits(toType, 1));
18 alias T4 = Type!(__traits(toType, "hello betty"));