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