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:
committed by
Alexander Udalov
parent
21fe0e80ff
commit
115bc6ac89
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user