summaryrefslogblamecommitdiff
path: root/test/files/neg/faculty.check
blob: 029ef16e59a1e0458f92c46205bf3ce8756df453 (plain) (tree)
1
2
3
4
                                                                  
                                                             

                                                
faculty.scala:3: error: recursive method faculty needs result type
  def faculty(x: int) = if (x == 0) 1 else x * faculty(x - 1)
                                               ^
one error found