Nested, suspendable tailrec extension-functions (d...
# announcements
t
Nested, suspendable tailrec extension-functions (don't ask :)) seem to upset the compiler:
Copy code
fun test() {
    tailrec suspend fun Int.handle(): Int {
        return when {
            this <= 0 -> 0
            else -> (this - 1).handle()
        }
    }
}
=>
youtrack 1
i
@trathschlag Could you create an issue in https://youtrack.jetbrains.com/issues/KT? If not, I will do it for you.
t
Will do. Just wanted to check if this is already known because I couldn't find it in YT
👍 1