There seems to be a regression with the IR backend for the stub generating task in Kotlin 1.8.20-Beta. This wasn’t an issue with Kotlin 1.8.10.
https://youtrack.jetbrains.com/issue/KT-56635/ I’ve added steps to reproduce the issue and provided as much information as I can. Please let me know if I can help more.