FIR checker: report tailrec problems on the keyword
FE1.0 reports it on the declaration signature. This is not ideal so we move it to the `tailrec` keyword in FIR.
This commit is contained in:
committed by
teamcityserver
parent
922ae607f6
commit
5252effb10
@@ -1,6 +1,6 @@
|
||||
// FIR_IDENTICAL
|
||||
class A(val a: A) {
|
||||
<!NO_TAIL_CALLS_FOUND!>tailrec fun foo1()<!> {
|
||||
<!NO_TAIL_CALLS_FOUND!>tailrec<!> fun foo1() {
|
||||
a.<!NON_TAIL_RECURSIVE_CALL!>foo1<!>()
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ class A(val a: A) {
|
||||
foo3()
|
||||
}
|
||||
|
||||
<!NO_TAIL_CALLS_FOUND!>tailrec fun foo4()<!> {
|
||||
<!NO_TAIL_CALLS_FOUND!>tailrec<!> fun foo4() {
|
||||
with(a) {
|
||||
<!NON_TAIL_RECURSIVE_CALL!>foo4<!>()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user