| 1 |
// https://issues.dlang.org/show_bug.cgi?id=21927 |
| 2 |
/* |
| 3 |
TEST_OUTPUT: |
| 4 |
--- |
| 5 |
T1(Args...) |
| 6 |
T1!() |
| 7 |
T2(Args2...) |
| 8 |
T2!() |
| 9 |
this.T2(Args2...) |
| 10 |
this.T2!() |
| 11 |
--- |
| 12 |
*/ |
| 13 |
template T1(Args...) {} |
| 14 |
|
| 15 |
pragma(msg, T1); // TOK.template_ |
| 16 |
pragma(msg, T1!()); // TOK.scope_ |
| 17 |
|
| 18 |
struct S |
| 19 |
{ |
| 20 |
template T2(Args2...) {} |
| 21 |
|
| 22 |
pragma(msg, S.T2); // TOK.template_ |
| 23 |
pragma(msg, S.T2!()); // TOK.scope_ |
| 24 |
|
| 25 |
void fun() |
| 26 |
{ |
| 27 |
pragma(msg, this.T2); // TOK.dotTemplateDeclaration |
| 28 |
pragma(msg, this.T2!()); // TOK.dot |
| 29 |
} |
| 30 |
} |