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
Describe the bug
Rename refactoring does not support initiating a renaming with the cursor on a field access, when the LHS of the field access is a constructor call.
To Reproduce
The following tests describe this behaviour, but currently fail:
test bool constructorCallHasField() = testRenameOccurrences({0, 1}, " bool b = f(8) has foo; ", decls = "data Foo = f(int foo);"); test bool constructorCallRenameField() = testRenameOccurrences({0, 1}, " int x = f(8).foo; ", decls = "data Foo = f(int foo);"); test bool constructorCallRenameKeywordField() = testRenameOccurrences({0, 1, 2}, " int x = f(foo = 8).foo; ", decls = "data Foo = f(int foo = 0);");
Expected behavior Rename the fields, like the LHS is a variable use (with ADT type).
The text was updated successfully, but these errors were encountered:
toinehartman
No branches or pull requests
Describe the bug
Rename refactoring does not support initiating a renaming with the cursor on a field access, when the LHS of the field access is a constructor call.
To Reproduce
The following tests describe this behaviour, but currently fail:
Expected behavior
Rename the fields, like the LHS is a variable use (with ADT type).
The text was updated successfully, but these errors were encountered: