summaryrefslogblamecommitdiff
path: root/test/files/neg/faculty.scala
blob: 1f137a48fa80e25d5b2d1b9d0bb74f253ddf1f5d (plain) (tree)
1
2
3
4
5

             
                                                             

 
object Test {

  def faculty(x: Int) = if (x == 0) 1 else x * faculty(x - 1)

}