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
uncaught exception during compilation: java.util.NoSuchElementException
error: java.util.NoSuchElementException
at scala.collection.LinearSeqOptimized$class.last(LinearSeqOptimized.scala:135)
at scala.collection.immutable.List.last(List.scala:77)
at scala.tools.nsc.backend.icode.Members$IMethod.lastBlock(Members.scala:159)
at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.addStaticInit(GenJVM.scala:995)
at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$genClass$1.apply(GenJVM.scala:445)
at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator$$anonfun$genClass$1.apply(GenJVM.scala:445)
[...]
The text was updated successfully, but these errors were encountered:
Remo Lemma (coloss) said (edited on Oct 30, 2011 1:42:07 PM UTC):
I investigated this bug, and it seems that there was a problem on how the compiler treats default parameters in abstract methods of traits.
This patch should solve the issue. I tested it with different test cases and of course checked that the test suite still finishes with no problems.
The crash is in CleanUp: It generates a static field & constructor in the interface class (that's wrong) because the "scala.Symbol.apply(...)" code remains in the interface as a default argument. Fixed by removing all default arguments from parameter ValDefs in UnCurry.
The following source
crashes the compiler:
The text was updated successfully, but these errors were encountered: