Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/test23968.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=23968
2
3 // REQUIRED_ARGS: -de
4
5 /*
6 TEST_OUTPUT:
7 ---
8 fail_compilation/test23968.d(22): Deprecation: alias `test23968.a` is deprecated
9 ---
10 */
11
12 int fun()(int)
13 {
14 return 0;
15 }
16
17 deprecated alias a = fun;
18
19 void main()
20 {
21 int v;
22 int y = v.a!(); // No deprecation?
23 }