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
Welcome to Scala version 2.11.2 (JavaHotSpot(TM) 64-BitServerVM, Java1.8.0_05).
Type in expressions to have them evaluated.
Type:help for more information.
scala>:paste
// Entering paste mode (ctrl-D to finish)objectA{
finalvala="a"finalvalb="b"deffoo(x: a.type) = x
deffoo(x: b.type) = x
}
// Exiting paste mode, now interpreting.
java.lang.ClassFormatError:Duplicate method name&signature in classfileA$
at java.lang.ClassLoader.defineClass1(NativeMethod)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at scala.reflect.internal.util.AbstractFileClassLoader.findClass(AbstractFileClassLoader.scala:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.getDeclaredMethods0(NativeMethod)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2688)
at java.lang.Class.privateGetPublicMethods(Class.java:2814)
at java.lang.Class.getMethods(Class.java:1602)
at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.evalMethod(IMain.scala:800)
at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:734)
at scala.tools.nsc.interpreter.IMain$Request.loadAndRun(IMain.scala:986)
at scala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:593)
at scala.tools.nsc.interpreter.IMain$WrappedRequest$$anonfun$loadAndRunReq$1.apply(IMain.scala:592)
at scala.reflect.internal.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:31)
at scala.reflect.internal.util.AbstractFileClassLoader.asContext(AbstractFileClassLoader.scala:19)
at scala.tools.nsc.interpreter.IMain$WrappedRequest.loadAndRunReq(IMain.scala:592)
at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:524)
at scala.tools.nsc.interpreter.IMain.interpret(IMain.scala:520)
at scala.tools.nsc.interpreter.ILoop.interpretCode$1(ILoop.scala:707)
at scala.tools.nsc.interpreter.ILoop.pasteCommand(ILoop.scala:721)
at scala.tools.nsc.interpreter.ILoop$$anonfun$standardCommands$10.apply(ILoop.scala:220)
at scala.tools.nsc.interpreter.ILoop$$anonfun$standardCommands$10.apply(ILoop.scala:220)
at scala.tools.nsc.interpreter.LoopCommands$LineCmd.apply(LoopCommands.scala:62)
at scala.tools.nsc.interpreter.ILoop.command(ILoop.scala:661)
at scala.tools.nsc.interpreter.ILoop.processLine(ILoop.scala:433)
at scala.tools.nsc.interpreter.ILoop.loop(ILoop.scala:450)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply$mcZ$sp(ILoop.scala:868)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:854)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1.apply(ILoop.scala:854)
at scala.reflect.internal.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:95)
at scala.tools.nsc.interpreter.ILoop.process(ILoop.scala:854)
at scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:74)
at scala.tools.nsc.MainGenericRunner.run$1(MainGenericRunner.scala:87)
at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:98)
at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:103)
at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: