KAPT: Fix an ISE when processing unresolved generic types

Error types that are generic could sometimes throw an ISE when
generating the stub.

This fixes KT-43786
This commit is contained in:
Nicklas Ansman Giertz
2022-09-16 11:54:52 -04:00
committed by Alexander Udalov
parent 21fe0e80ff
commit 115bc6ac89
6 changed files with 90 additions and 1 deletions
@@ -0,0 +1,14 @@
// CORRECT_ERROR_TYPES
@Suppress("UNRESOLVED_REFERENCE")
class Application {
lateinit var _preferencesDataStore: DataStore<Preferences>
companion object {
@JvmStatic
fun get(): Application = error()
@JvmStatic
fun getPreferencesDataStore() = get()._preferencesDataStore
}
}