| 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 |
*/ |
| 10 |
|
| 11 |
#line 100 |
| 12 |
|
| 13 |
template Type(T) { alias Type = T; } |
| 14 |
|
| 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")); |