Skip to content

Instantly share code, notes, and snippets.

@xeno-by
Created December 7, 2011 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeno-by/1443232 to your computer and use it in GitHub Desktop.
Save xeno-by/1443232 to your computer and use it in GitHub Desktop.
error: recursive method factorial needs result type
Exception in thread "main" java.lang.Error: reflective compilation has failed
at scala.reflect.runtime.ToolBoxes$ToolBox$ToolBoxGlobal.runExpr(ToolBoxes.scala:95)
at scala.reflect.runtime.ToolBoxes$ToolBox.runExpr(ToolBoxes.scala:168)
at scala.reflect.runtime.ToolBoxes$ToolBox.runExpr(ToolBoxes.scala:171)
at Test$delayedInit$body.apply(t5274_0.scala:16)
at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:61)
at scala.App$$anonfun$main$1.apply(App.scala:61)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:80)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:31)
at scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:44)
at scala.App$class.main(App.scala:61)
at Test$.main(t5274_0.scala:5)
at Test.main(t5274_0.scala)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment