Michael de Kaste
08/24/2023, 10:24 AMinline fun <T> Collection<T>.associateByPeriod(keySelector: (T) -> Period<LocalDate>): LocalDatePeriodMap<T?> = ...
inline fun <T> Collection<T>.associateByPeriod(keySelector: (T) -> Period<LocalDateTime>): LocalDateTimePeriodMap<T?> = ...
now somewhere in my code I am doing
list.associateByPeriod{ it.period } //period being a Period<LocalDateTime>
now I still get the exception
Overload resolution ambiguity. All these functions match.
but the first one can't match because of typing.
am I forced to make different function names for each periodMap?Youssef Shoaib [MOD]
08/24/2023, 10:30 AM@OverloadResolutionByLambdaReturnType