blob: a96ef34b6c0f357c54c6b4d8dc27f9a2f81fa530 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/ice8630.d(9): Error: undefined identifier `v`
fail_compilation/ice8630.d(10): Error: template instance `ice8630.foo!(int[])` error instantiating
---
*/
auto map(alias func, R)(R r) { return r; }
typeof(v) foo(R)(R v) { return map!(p=>p)(v); }
void main() { foo([1]); }