When deciding on which one of overloaded functions...
# announcements
d
When deciding on which one of overloaded functions are invoked, why isn't nullability considered?
Copy code
fun func(a: Any?) {}

fun <T> func(a: Collection<T>) {}

fun main(args: Array<String>) {
	func(null) // Type inference fails here
}
i
d
Thanks. I was considering to report it. You saved my time (and possibly someone's in your team. 😉 )