Skip to content

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

Closed
@rochala

Description

@rochala

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions