the only way to have intersection types as return ...
# stdlib
k
the only way to have intersection types as return types is to let the compiler infer it:
fun <T> intersection() = if (true) mutableListOf<T>() else null as RandomAccess
but this was specifically prevented by @dmitry.petrov IIRC