summaryrefslogtreecommitdiff
path: root/test/files/neg/faculty.check
blob: 1a1c65f853fda3f9e60467f45850ea9120b0b23d (plain) (blame)
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