just going through the katas(currently at Collecti...
# announcements
d
just going through the katas(currently at Collections/Sums[https://try.kotlinlang.org/#/Kotlin%20Koans/Collections/Sum/Task.kt]. i feel like 'sumByDouble{ it.someDoubleType}' is somewhat out of place. Why not just leave it at 'sum{ it.someDoubleType}' ?
i
Currently function can't be overloaded by lambda return type, see https://youtrack.jetbrains.com/issue/KT-11265
👍 1
d
thanks
n
Generics are erased, which includes lambda types. It would be nice if this didn't apply to inline functions with reified types though.
i
@Nicholas Bilyk The issue here is not only due to erasure, but due to type inference in the first place