-
Notifications
You must be signed in to change notification settings - Fork 21
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
Value class defined in a method gives spurious error. #6357
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6357?orig=1 |
@jsuereth said: |
@odersky said: |
@paulp said: |
@adriaanm said (edited on Nov 17, 2012 1:23:04 AM UTC): object Foo {
def main(args: Array[String]) = execute {
class VInt(val v: Int) extends AnyVal
}
def execute(body: => Unit): Unit = body
} Is this something we want to support in 2.10.0? |
@adriaanm said: |
@harrah said: |
@adriaanm said: |
If the result type of q is explicitly annotated, the expected error message "value class may not be a local class" results.
The text was updated successfully, but these errors were encountered: