fork download
  1. import std.algorithm, std.range;
  2. import std.stdio;
  3. typeof(v) foo(R)(R v) { return array(map!((p) { return p; })(v)); }
  4. void main() { foo([0]); }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.d(3): Error: undefined identifier v, did you mean alias R?
stdout
Standard output is empty