Can someone explain to me why this work: ``` fu...
# getting-started
m
Can someone explain to me why this work:
Copy code
fun foo(): Observable<StreamItem> {
        return Observable.just(null)
    }
while this gives me an
Type mismatch
error:
Copy code
fun foo(): Observable<StreamItem> {
        val x = Observable.just(null)
        return x
    }
I would think both should error right?!