Overload resolution ambiguity. All these functions match.
@RecentlyNonNull public open fun putExtra(name: String!, value: Parcelable!): Intent! defined in android.content.Intent
@RecentlyNonNull public open fun putExtra(name: String!, value: Serializable!): Intent! defined in android.content.Inten
a
agrosner
01/22/2019, 6:27 PM
thats because both can match. cast the type as one or the other so it knows which method to use
a
Alowaniak
01/22/2019, 7:06 PM
Or maybe you want data to be one of Either instead of both?