Skip to content

case objects should be handled like case classes and extend Product0 #723

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
smarter opened this issue Jul 13, 2015 · 1 comment
Closed

Comments

@smarter
Copy link
Member

smarter commented Jul 13, 2015

Currently, for a case object like:

case object Foo

we generate an empty object:

final lazy module case val Foo: Foo$ = new Foo$()
final module class Foo$ extends Object { this: <notype> => 
  def <init>(): Unit = {
    super()
    ()
  }
}

But instead, we should generate an object which extends Product0 and overrides the appropriate methods.

@DarkDimius
Copy link
Contributor

fixed in master.

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

2 participants