Steven Schveighoffer <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #1 from Steven Schveighoffer <> 2010-04-05 
07:13:07 PDT ---
This probably is invalid, because the const in that position applies to the
this pointer.  It's equivalent to:

ref int bar() const {

To get the desired behavior, use parentheses:

ref const(int) bar() {

These kinds of errors are why I think allowing const at the beginning of the
function should be deprecated.

One strange thing, this also has same error:

ref const int bar() {

It would follow logically that if const applies to the function bar and not the
return value, then ref applies to the function bar as well, but it obviously
only applies to the return value.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to