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

Class-based REPL does not support defining value classes #9910

Open
scabug opened this Issue Sep 1, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@scabug
Copy link

scabug commented Sep 1, 2016

Classes extending AnyVal cannot be defined in a REPL started with the -Yrepl-class-based option.

E.g.

scala> case class Foo(x: Int) extends AnyVal
error: value class may not be a member of another class
       case class Foo(x: Int) extends AnyVal
                  ^

without the -Yrepl-class-based option, everything works as expected.

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Sep 1, 2016

Imported From: https://issues.scala-lang.org/browse/SI-9910?orig=1
Reporter: @jodersky
Affected Versions: 2.11.0, 2.12.0-M5
See #9799

@scabug scabug added the repl label Apr 7, 2017

@scabug scabug added this to the Backlog milestone Apr 7, 2017

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