You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>scala
Welcome to Scala version 2.9.1.final (JavaHotSpot(TM) ClientVM, Java1.6.0_24).
Type in expressions to have them evaluated.
Type:help for more information.
scala>objecttestextendsApp {
|defwithAssignment(b: Int) =new {def=:(s: Symbol) =Nil}
|// 'mu equals 1//uncomment to uncrash|'mu=: withAssignment(1)
| }
defined module test
scala> test
java.lang.IllegalAccessError: tried to access field test$.symbol$1 from classtest$delayedInit$body
at test$delayedInit$body.<clinit>(<console>:10)
at test$.<init>(<console>:7)
at test$.<clinit>(<console>)
at .<init>(<console>:9)
at .<clinit>(<console>)
at .<init>(<console>:11)
at .<clinit>(<console>)
at $print(<console>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:704)
at scala.tools.nsc.interpreter.IMain$Request$$anonfun$14.apply(IMain.scala:920)
at scala.tools.nsc.interpreter.Line$$anonfun$1.apply$mcV$sp(Line.scala:43)
at scala.tools.nsc.io.package$$anon$2.run(package.scala:25)
at java.lang.Thread.run(Thread.java:662)
also fails in scala-2.10.0.r25912-b20111031024940
The text was updated successfully, but these errors were encountered:
also fails in scala-2.10.0.r25912-b20111031024940
The text was updated successfully, but these errors were encountered: