]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | // REQUIRED_ARGS: -de |
2 | /* | |
3 | TEST_OUTPUT: | |
4 | --- | |
5fee5ec3 | 5 | fail_compilation/depmsg15815.d(23): Deprecation: template `depmsg15815.Alias(T)` is deprecated - message |
b4c522fa IB |
6 | Foo |
7 | --- | |
8 | */ | |
9 | ||
10 | template Unqual(T) | |
11 | { | |
12 | static if (is(T U == const U)) alias Unqual = U; | |
13 | else alias Unqual = T; | |
14 | } | |
15 | ||
16 | deprecated("message") | |
17 | template Alias(T) | |
18 | { | |
19 | alias Alias = Unqual!T; | |
20 | } | |
21 | ||
22 | struct Foo {} | |
23 | pragma(msg, Alias!(const(Foo))); |