Skip to content
New issue

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

Scala2 - deduplicate NamedArgParams with Def params #5466

Merged
merged 1 commit into from Jul 20, 2023

Conversation

dos65
Copy link
Member

@dos65 dos65 commented Jul 20, 2023

NamedArgParam is based on actual symbol, in the following case the valid symbol param and correspoding NamedArgParam(param) were clashing

def foo(param: Int): Int = {
  foo(para@@)
}

NamedArgParam is based on actual symbol, in the following case the valid symbol `param` and correspoding NamedArgParam(`param`) were clashing
```
def foo(param: Int): Int = {
  foo(para@@)
}
```
@@ -23,14 +23,14 @@ class CompletionArgSuite extends BaseCompletionSuite {
check(
"arg-newline",
s"""|object Main {
| def foo(banana: String, apple: String) = ???
| def foo(banana: String, tomato: String) = ???
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After making a deduplication, this tests started receiving an additional apple package symbol from jdk so I decided just to rename it

@tgodzik tgodzik merged commit 0586fff into scalameta:main Jul 20, 2023
22 of 23 checks passed
@jkciesluk jkciesluk modified the milestone: Metals v1.0.1 Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants