115bc6ac89
Error types that are generic could sometimes throw an ISE when generating the stub. This fixes KT-43786
15 lines
321 B
Kotlin
Vendored
15 lines
321 B
Kotlin
Vendored
// 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
|
|
}
|
|
}
|