Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail10346.d(9): Error: undefined identifier `T`
5 ---
6 */
7
8 struct Foo(T) {}
9 void bar(T x, T)(Foo!T) {}
10 void main()
11 {
12 Foo!int spam;
13 bar!10(spam);
14 }