We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version Used: Master branch @ March 9 Steps to Reproduce:
Compile the following code:
class C { ref C M() => ref this; }
Expected Behavior: The compiler emits error "Class members cannot return 'this' by reference".
Actual Behavior: The compiler emits error "Struct members cannot return 'this' or other instance members by reference"
The text was updated successfully, but these errors were encountered:
It is also possible to use message "Cannot return 'this' by reference" without specifying if the member belongs to class or struct.
Sorry, something went wrong.
Dup of #15704 and already has a fix here: #15706
No branches or pull requests
Version Used:
Master branch @ March 9
Steps to Reproduce:
Compile the following code:
Expected Behavior:
The compiler emits error "Class members cannot return 'this' by reference".
Actual Behavior:
The compiler emits error "Struct members cannot return 'this' or other instance members by reference"
The text was updated successfully, but these errors were encountered: