https://issues.dlang.org/show_bug.cgi?id=23300

--- Comment #3 from Ate Eskola <[email protected]> ---
I narrowed down what causes the inference to fail

------
auto fun(int* ptr)
{ // comment out this line and this compiles
  // as does if you explicitly mark either it or the argument scope
  auto r = ptr;
  return new int;
}

@safe int* gun(scope int* ptr){return ptr.fun;}
------

Is the scope inference supposed to behave like this?

--

Reply via email to