Good morning. Quick question. I have this interfac...
# getting-started
l
Good morning. Quick question. I have this interface:
Copy code
fun interface OnCompleteListener<T> {
    fun onCompleted(result: Result<T>?)
}
With this, the
result
parameter compiles to a nullable
Result
type. If I make
result
not nullable, then the parameter compiles to a not nullable
Object
. Is there a way to make it compile to a non nullable
Result
?
Oh, is it because
Result
is a value class?
👌 3