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
Minimization using lemon juice for the invisible ink:
scala> class Y ; def y = { val yy = new Y { class Z ; def z = new Z().getClass }; yy.z } warning: there were 1 feature warning(s); re-run with -feature for details defined class Y y: Class[_ <: AnyRef] scala> y.getEnclosingClass.getName replaceAll ("\\Q$\\E", "%") res3: String = %line4.%read%%iw%%iw%
or possibly more perspicaciously,
scala> object X { class Y; def y = new Y { class Z ; def z = classOf[Z] } } ; (X.y.getClass, X.y.z) warning: there were 2 feature warning(s); re-run with -feature for details defined object X res0: (Class[?0], Class[_1.Z]) forSome { type ?0 <: X.Y; val _1: X.Y{type Z <: AnyRef; def z: Class[this.Z]} } = (class X$$anon$1,class X$$anon$1$Z) scala> (res0._1.getEnclosingClass, res0._2.getEnclosingClass) warning: there were 1 feature warning(s); re-run with -feature for details res1: (Class[?0], Class[?0]) forSome { type ?0; type ?0 } = (class X$,class X$)
The encloser of Z should be X$$anon$1.
X$$anon$1
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-8445?orig=1 Reporter: @som-snytt Affected Versions: 2.11.0-RC3 See #6622, #6759
Sorry, something went wrong.
@retronym said: The comments of #6622 include a survey of the territory.
@retronym said: Surely this was a perfect opportunity for :paste -raw to save on lemon juice.
:paste -raw
@som-snytt said: I tried :paste -cru. That's why we need :help paste.
:paste -cru
:help paste
@gkossakowski said: The 2.11.2 is out so I'm rescheduling the issue for 2.11.3.
@lrytz said: scala/scala#4011
lrytz
No branches or pull requests
Minimization using lemon juice for the invisible ink:
or possibly more perspicaciously,
The encloser of Z should be
X$$anon$1
.The text was updated successfully, but these errors were encountered: