summaryrefslogblamecommitdiff
path: root/test/files/neg/tailrec-4.check
blob: 3ec32744780e40972afa26be8728320c0c78a3a2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                                                              
tailrec-4.scala:6: error: could not optimize @tailrec annotated method foo: it contains a recursive call not in tail position
      @tailrec def foo: Int = foo + 1
                                  ^
tailrec-4.scala:11: error: could not optimize @tailrec annotated method foo: it contains a recursive call not in tail position
      @tailrec def foo: Int = foo + 1
                                  ^
tailrec-4.scala:17: error: could not optimize @tailrec annotated method foo: it contains a recursive call not in tail position
      @tailrec def foo: Int = foo + 1
                                  ^
tailrec-4.scala:23: error: could not optimize @tailrec annotated method foo: it contains a recursive call not in tail position
      @tailrec def foo: Int = foo + 1
                                  ^
tailrec-4.scala:31: error: could not optimize @tailrec annotated method foo: it contains a recursive call not in tail position
          @tailrec def foo: Int = foo + 1
                                      ^
5 errors found