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

--- Comment #1 from Walter Bright <[email protected]> ---
For struct member functions:

  struct S {
     T foo() return scope { ... }
  }

the first parameter is `ref S`. But the ambiguity is resolved by allowing `ref`
to appear after the `foo()`, as in:

    T foo() return ref scope { ... }  // returnRef scope
    T foo() ref return scope { ... }  // ref returnScope

--

Reply via email to