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
@@ -6,11 +6,11 @@ open class A {
|
||||
}
|
||||
|
||||
class B: A() {
|
||||
<!NO_TAIL_CALLS_FOUND!>tailrec override fun foo(x: Int)<!> {
|
||||
<!NO_TAIL_CALLS_FOUND!>tailrec<!> override fun foo(x: Int) {
|
||||
<!NON_TAIL_RECURSIVE_CALL!>foo<!>()
|
||||
}
|
||||
|
||||
<!NO_TAIL_CALLS_FOUND!>tailrec override fun gav(y: Int, z: Int)<!> {
|
||||
<!NO_TAIL_CALLS_FOUND!>tailrec<!> override fun gav(y: Int, z: Int) {
|
||||
<!NON_TAIL_RECURSIVE_CALL!>gav<!>(y)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user