| 1 |
/* |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/diag14876.d(17): Deprecation: class `diag14876.Dep` is deprecated |
| 5 |
fail_compilation/diag14876.d(18): Deprecation: class `diag14876.Dep` is deprecated |
| 6 |
fail_compilation/diag14876.d(19): Deprecation: class `diag14876.Dep` is deprecated |
| 7 |
fail_compilation/diag14876.d(20): Deprecation: class `diag14876.Dep` is deprecated |
| 8 |
fail_compilation/diag14876.d(21): Deprecation: class `diag14876.Dep` is deprecated |
| 9 |
fail_compilation/diag14876.d(22): Deprecation: class `diag14876.Dep` is deprecated |
| 10 |
fail_compilation/diag14876.d(23): Deprecation: class `diag14876.Dep` is deprecated |
| 11 |
fail_compilation/diag14876.d(23): Error: can only slice type sequences, not `diag14876.Dep` |
| 12 |
--- |
| 13 |
*/ |
| 14 |
|
| 15 |
deprecated class Dep { class Mem {} } |
| 16 |
|
| 17 |
alias X1 = Foo!(Dep[]); |
| 18 |
alias X2 = Foo!(Dep[1]); |
| 19 |
alias X3 = Foo!(Dep[int]); |
| 20 |
alias X4 = Foo!(int[Dep]); |
| 21 |
alias X5 = Foo!(Dep*); |
| 22 |
alias X6 = Foo!(Dep.Mem); |
| 23 |
alias X7 = Foo!(Dep[3..4]); |
| 24 |
|
| 25 |
template Foo(T) {} |