summaryrefslogblamecommitdiff
path: root/test/files/neg/faculty.check
blob: 0fccb73753ebe18bdb3ee243b87b22c95d5b1a81 (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