mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
18 lines
272 B
D
18 lines
272 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice11922.d(11): Error: undefined identifier `a`
|
|
fail_compilation/ice11922.d(17): Error: template instance `ice11922.S.f!int` error instantiating
|
|
---
|
|
*/
|
|
|
|
struct S
|
|
{
|
|
auto f(B)(B) { return a; }
|
|
}
|
|
|
|
void main()
|
|
{
|
|
S s;
|
|
s.f(5);
|
|
}
|