summaryrefslogblamecommitdiff
path: root/test/files/neg/t6526.check
blob: 606c18c3019cd1281e7311459b6af1b86dfb4fc3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                                                            



                                                                                                                            
t6526.scala:8: error: could not optimize @tailrec annotated method inner: it contains a recursive call not in tail position
    @tailrec def inner(i: Int): Int = 1 + inner(i)
                                        ^
t6526.scala:14: error: could not optimize @tailrec annotated method inner: it contains a recursive call not in tail position
    @tailrec def inner(i: Int): Int = 1 + inner(i)
                                        ^
t6526.scala:20: error: could not optimize @tailrec annotated method inner: it contains a recursive call not in tail position
    @tailrec def inner(i: Int): Int = 1 + inner(i)
                                        ^
t6526.scala:30: error: could not optimize @tailrec annotated method inner: it contains a recursive call not in tail position
        @tailrec def inner(i: Int): Int = 1 + inner(i)
                                            ^
t6526.scala:39: error: could not optimize @tailrec annotated method inner: it contains a recursive call not in tail position
    def inner(i: Int): Int = 1 + inner(i)
                               ^
5 errors found