blob: 9dda7cf0b2a048837849f81b4295abee2cb6246d [file]
// RUN_PIPELINE_TILL: BACKEND
// FIR_IDENTICAL
class A(val a: A) {
<!NO_TAIL_CALLS_FOUND!>tailrec<!> fun foo1() {
a.<!NON_TAIL_RECURSIVE_CALL!>foo1<!>()
}
tailrec fun foo2() {
this.foo2()
}
tailrec fun foo3() {
foo3()
}
<!NO_TAIL_CALLS_FOUND!>tailrec<!> fun foo4() {
with(a) {
<!NON_TAIL_RECURSIVE_CALL!>foo4<!>()
return
}
}
}
/* GENERATED_FIR_TAGS: classDeclaration, functionDeclaration, lambdaLiteral, primaryConstructor, propertyDeclaration,
tailrec, thisExpression */