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

Extraction of companion objects #100

Open
jad-hamza opened this issue Nov 9, 2017 · 2 comments
Open

Extraction of companion objects #100

jad-hamza opened this issue Nov 9, 2017 · 2 comments

Comments

@jad-hamza
Copy link
Contributor

object SI_NodesRegistry {
  case class Test()
  def test() = Test
}

In the last line, I should have written Test() (then everything is good). However, if I forget the parentheses, I obtain an internal error:

Missing some nodes in Registry: Test$1

@mantognini
Copy link
Contributor

I guess this code should be rejected. The parentheses-less version corresponds to returning the case class companion object.

@samarion
Copy link
Member

samarion commented Nov 9, 2017 via email

@romac romac added this to the 0.4 milestone Jun 24, 2019
@romac romac removed this from the 0.5 milestone Jul 7, 2019
@romac romac changed the title Missing some nodes in Registry when forgetting parentheses for case class Extraction of companion objects Jul 7, 2019
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

No branches or pull requests

4 participants