This is frustrating, I get it sometimes in the pas...
# random
d
This is frustrating, I get it sometimes in the past and I tough it’s been a bug. The error is only at compile time 😕
Copy code
private var a by p.invoke<Int?>() // OK
private var b: Int? by p() // Type inference failed: Not enough information to infer parameter T in inline operator fun <reified T> SharedPreferences.invoke(key: String? = ...): ReadWriteProperty<Any?, T?> Please specify it explicitly.