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

scabug opened this Issue Sep 1, 2016 · 1 comment


None yet
1 participant
Copy link

scabug commented Sep 1, 2016

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


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.


This comment has been minimized.

Copy link

scabug commented Sep 1, 2016

Imported From:
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