| 1 |
/* |
| 2 |
REQUIRED_ARGS: -de |
| 3 |
|
| 4 |
TEST_OUTPUT: |
| 5 |
---- |
| 6 |
fail_compilation/deprecatedTemplates.d(103): Deprecation: template `deprecatedTemplates.AliasSeq(V...)` is deprecated |
| 7 |
fail_compilation/deprecatedTemplates.d(107): Deprecation: struct `deprecatedTemplates.S1(V...)` is deprecated |
| 8 |
fail_compilation/deprecatedTemplates.d(115): Deprecation: template `deprecatedTemplates.C(V...)` is deprecated |
| 9 |
---- |
| 10 |
*/ |
| 11 |
#line 100 |
| 12 |
|
| 13 |
deprecated alias AliasSeq(V...) = V; |
| 14 |
|
| 15 |
alias x = AliasSeq!(1, 2, 3); |
| 16 |
|
| 17 |
deprecated struct S1(V...) {} |
| 18 |
|
| 19 |
alias T1 = S1!(); |
| 20 |
|
| 21 |
deprecated template C(V...) |
| 22 |
{ |
| 23 |
int i; |
| 24 |
int j; |
| 25 |
} |
| 26 |
|
| 27 |
alias D = C!(); |
| 28 |
|
| 29 |
/* |
| 30 |
TEST_OUTPUT: |
| 31 |
---- |
| 32 |
fail_compilation/deprecatedTemplates.d(202): Deprecation: template `deprecatedTemplates.AliasSeqMsg(V...)` is deprecated - Reason |
| 33 |
---- |
| 34 |
*/ |
| 35 |
#line 200 |
| 36 |
deprecated("Reason") alias AliasSeqMsg(V...) = V; |
| 37 |
|
| 38 |
alias xMsg = AliasSeqMsg!(1, 2, 3); |
| 39 |
|
| 40 |
deprecated struct DS() |
| 41 |
{ |
| 42 |
S1!() s; |
| 43 |
} |
| 44 |
|
| 45 |
deprecated struct DS2() |
| 46 |
{ |
| 47 |
static struct DS3() |
| 48 |
{ |
| 49 |
S1!() s; |
| 50 |
} |
| 51 |
|
| 52 |
static struct DS4 |
| 53 |
{ |
| 54 |
S1!() s; |
| 55 |
} |
| 56 |
} |
| 57 |
|
| 58 |
deprecated void foo() |
| 59 |
{ |
| 60 |
DS!() d1; |
| 61 |
DS2!().DS3!() d2; |
| 62 |
DS2!().DS4 d3; |
| 63 |
} |