Sam Garfinkel
06/05/2020, 5:49 PMT: Any? differently from T: Any without conflicting overloads? The following conflict:
inline fun <reified T: Any> foo(): Bar<T> {}
inline fun <reified T: Any, S: T?> foo(): Bar<S> {}
Which makes sense since it’s ambiguous for the call when T is non-null.Luke
06/05/2020, 5:52 PM@JvmName("fooNullable") on the one that takes nullables for example