Skip to content

Completions doesn't return class member inside non-empty method body #12018

@dos65

Description

@dos65

3.0.0-RC2

They work normally for a class member in most cases except the following one:

class Foo(abc: Int) {
   
   def method: Int = {
      ab@@ // <- no `abc` in results
      42
   }
}

However, it works in other cases:

class Foo(abc: Int) {
   ab@@ // <- works in body
   def method: Int = {
      ab@@ // <- works in empty method body
   }
   def method2: Int = {
      val smth = ab@@ // <- works if goes after assignment to val
      42
   }
}

Expectation

It should return a reference to the member in the first described case.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions