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

Toolbox: can't define case class with a companion object #9748

Closed
scabug opened this issue Apr 12, 2016 · 2 comments
Closed

Toolbox: can't define case class with a companion object #9748

scabug opened this issue Apr 12, 2016 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Apr 12, 2016

The following code:

val tb = // create ToolBox
val code = "case class Foo(bar: Int); object Foo"                                                      
tb.eval(tb.parse(code))

will result in an error:

Foo is already defined as (compiler-generated) case class companion object Foo

I'm not familiar with the ToolBox implementation, but i'll reckon this bug is just a result of #3772.

@scabug
Copy link
Author

scabug commented Apr 12, 2016

Imported From: https://issues.scala-lang.org/browse/SI-9748?orig=1
Reporter: Eyal Roth (errr)
See #3772

@scabug
Copy link
Author

scabug commented Dec 12, 2016

@lrytz said:
duplicate of #3772, fixed by scala/scala#5550

@scabug scabug closed this as completed Dec 12, 2016
@scabug scabug added this to the 2.12.2 milestone Apr 7, 2017
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

2 participants