Skip to content

No completions for parent class values shadowed by non public values from class constructor #15235

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

Closed
rochala opened this issue May 19, 2022 · 0 comments · Fixed by #15236
Closed
Assignees

Comments

@rochala
Copy link
Contributor

rochala commented May 19, 2022

Compiler version

3.1.3-RC2

Minimized code

Problem first appeared while working with SingleDenotation in our repository,
when I tried to get its symbol no completions appeared.
This is minimized issue.

class Test(val symbol: String)
class BetterTest(symbol: Int) extends Test(symbol.toString):
  symb$m1
object O:
  def t(test: BetterTest) = test.symb$m2

Output

m1 properly shows symbol: Int
m2 shows no completion.

Expectation

m1 properly shows symbol: Int
m2 shows symbol: String

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant