Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail325.d(12): Error: template `fun(T = int)(int w, int z)` has no type
5 ---
6 */
7
8 void fun(T = int)(int w, int z) {}
9
10 void main()
11 {
12 auto x = cast(void function(int, int))fun;
13 }