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

Support for SAM in symbol for semanticdb #3394

Open
tgodzik opened this issue Nov 27, 2023 · 0 comments
Open

Support for SAM in symbol for semanticdb #3394

tgodzik opened this issue Nov 27, 2023 · 0 comments

Comments

@tgodzik
Copy link
Collaborator

tgodzik commented Nov 27, 2023

Currently, when using code such as:

// applies to abstract classes too
trait MyTestTrait {
  def compute(input: Int): Int
}

// MyTestObject could be a class, trait, etc.
object MyTestObject {

  val test1: MyTestTrait = (input: Int) => input + 1
  def test2: MyTestTrait = (input: Int) => input + 2

  val test3: MyTestTrait = new MyTestTrait {
    def compute(input: Int): Int = input + 3
  }
  def test4: MyTestTrait = new MyTestTrait {
    def compute(input: Int): Int = input + 4
  }

}

There is no new symbol entry for the anonymous class coming from SAM.

We should do it similar as we for anonymous classes.

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

No branches or pull requests

1 participant