blob: 1926764152b69e9098a37d6d96c1ae75c2aa6a48 [file]
// RUN_PIPELINE_TILL: CODEGEN
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 */