title: Kotlin: `tailrec` on Instance method vs Extension function
body: <p>In the below code, I see a warning <code>no tail calls found</code>, but the same function, when written as extension function, doesn't have that warning. Now I am confused whether my IDE is wrong, or my Extension method is not actually tail-recursive or is there a difference between how compiler deals with Instance methods vs Extension functions.
  <a href="https://i.stack.imgur.com/q7ft7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q7ft7.png" alt="enter image description here"></a></p>