mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
14 lines
189 B
D
14 lines
189 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail10346.d(9): Error: undefined identifier `T`
|
|
---
|
|
*/
|
|
|
|
struct Foo(T) {}
|
|
void bar(T x, T)(Foo!T) {}
|
|
void main()
|
|
{
|
|
Foo!int spam;
|
|
bar!10(spam);
|
|
}
|