Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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