We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import scala.reflect.runtime.universe._ import scala.tools.reflect.ToolBox import scala.tools.reflect.Eval class O { class I } class A extends O { val code = reify { val v: I = new I v } println(showRaw(code)) } object Test extends App { val v: A#I = (new A).code.eval }
Class A is reified as free term A$value, and reflective compilation fails on typecheck of the expression new A$value.I() with the following error:
A
A$value
new A$value.I()
issue error: Test.this.A is not a legal prefix for a constructor
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-7083?orig=1 Reporter: Dmitry Bushev (4e6) Affected Versions: 2.10.0, 2.10.1-RC1, 2.10.1
Sorry, something went wrong.
No branches or pull requests
Class
A
is reified as free termA$value
, and reflective compilation fails on typecheck of the expressionnew A$value.I()
with the following error:issue error: Test.this.A is not a legal prefix for a constructor
The text was updated successfully, but these errors were encountered: