I’ve got a sort of odd case here where I have a function that returns
Single<Collection<Type>>
and internally code that looks like this
Copy code
return someListSingle.map { list -> list as Collection<Type> }
In 1.8.0-RC, this cast is marked as redundant (as a compilation warning), but removing it actually causes a compilation error. I’m not sure if it’s expected to automatically infer the cast or if I should report a bug for a false-positive warning.